Changeset 10694 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/Transformations/Transformation.cs
- Timestamp:
- 04/02/14 11:23:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/Transformations/Transformation.cs
r10671 r10694 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Problems.DataAnalysis; 25 27 26 28 namespace HeuristicLab.DataPreprocessing.Transformations { 27 29 [Item("Transformation", "Represents the base class for a transformation.")] 28 public abstract class Transformation : ParameterizedNamedItem { 30 [StorableClass] 31 public abstract class Transformation<T> : ParameterizedNamedItem, ITransformation<T> { 32 public string Column { get; private set; } 29 33 30 protected new ParameterCollection Parameters { 31 get { return base.Parameters; } 34 [StorableConstructor] 35 protected Transformation(bool deserializing) : base(deserializing) { } 36 protected Transformation(Transformation<T> original, Cloner cloner) 37 : base(original, cloner) { 38 Column = original.Column; 32 39 } 33 34 protected ITransactionalPreprocessingData PreprocessingData { get; private set; } 35 36 protected string Column { get; private set; } 37 38 protected Transformation() { 39 } 40 41 protected Transformation(ITransactionalPreprocessingData preprocessingData, string column) { 42 this.PreprocessingData = preprocessingData; 40 protected Transformation() { } 41 protected Transformation(string column) { 43 42 this.Column = column; 44 43 } 45 44 46 protected Transformation(Transformation original, Cloner cloner) 47 : base(original, cloner) { 48 PreprocessingData = (ITransactionalPreprocessingData)original.PreprocessingData.Clone(); 49 Column = original.Column; 50 } 45 public abstract IEnumerable<T> Apply(IEnumerable<T> data); 51 46 52 public abstract void Transform();47 public abstract IEnumerable<T> InverseApply(IEnumerable<T> data); 53 48 54 public abstract ISymbolicExpressionTree GenerateInverseTransformation(); 55 56 public abstract void Check(); 57 49 public abstract void Check(IEnumerable<T> data); 58 50 } 59 51 }
Note: See TracChangeset
for help on using the changeset viewer.