Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10943


Ignore:
Timestamp:
06/04/14 13:33:00 (11 years ago)
Author:
tsteinre
Message:
  • implement Backtransformation logic for CopyColumnTransformation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TransformationToSymbolicTreeMapper.cs

    r10940 r10943  
    4747        return GenerateModelForShiftStandardDistributionTransformation();
    4848      } else if (transformation is CopyColumnTransformation) {
    49         // TODO
     49        return GenerateTreeNodeForCopyColumnTransformation();
    5050      }
    5151      throw new NotImplementedException();
     
    6767      } else if (transformation is ShiftStandardDistributionTransformation) {
    6868        GenerateInverseModelForShiftStandardDistributionTransformation();
     69      } else if (transformation is CopyColumnTransformation) {
     70        return GenerateTreeNodeForCopyColumnTransformation();
    6971      }
    7072
     
    205207
    206208      return GenTreeShiftStdDist(column, m_tarValue, s_tarValue, m_orgValue, s_orgValue);
     209    }
     210
     211    private ISymbolicExpressionTreeNode GenerateTreeNodeForCopyColumnTransformation() {
     212      var copyColumnTransformation = (CopyColumnTransformation)transformation;
     213      var copiedColumnName = copyColumnTransformation.CopiedColumnName;
     214
     215      return CreateVariableTreeNode(copiedColumnName, copiedColumnName + "(original)");
    207216    }
    208217
Note: See TracChangeset for help on using the changeset viewer.