Changeset 13502 for trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/CorrelationMatrixContent.cs
- Timestamp:
- 01/12/16 17:05:37 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/CorrelationMatrixContent.cs
r12012 r13502 21 21 22 22 using System.Drawing; 23 using System.Linq; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 32 33 } 33 34 34 private IPreprocessingContext Context { get; set; }35 private PreprocessingContext Context { get; set; } 35 36 private ITransactionalPreprocessingData PreprocessingData { 36 37 get { return Context.Data; } … … 39 40 public DataAnalysisProblemData ProblemData { 40 41 get { 41 var creator = new ProblemDataCreator(Context); 42 return (DataAnalysisProblemData)creator.CreateProblemData(); 42 // ToDo: avoid iterating 43 return Context.ExportPossibilities.Select(p => p.Value()).OfType<DataAnalysisProblemData>().Single(); 44 //var creator = new ProblemDataCreator(Context); 45 //return (DataAnalysisProblemData)creator.CreateProblemData(); 43 46 } 44 47 } 45 48 46 public CorrelationMatrixContent( IPreprocessingContext context) {49 public CorrelationMatrixContent(PreprocessingContext context) { 47 50 Context = context; 48 51 } … … 50 53 public CorrelationMatrixContent(CorrelationMatrixContent original, Cloner cloner) 51 54 : base(original, cloner) { 52 55 Context = original.Context; 53 56 } 54 57
Note: See TracChangeset
for help on using the changeset viewer.