Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/12/16 17:05:37 (8 years ago)
Author:
pfleck
Message:

#2559

  • Adapted import and export for preprocessing.
  • Added MenuItem to be able to open Preprocessing without creating a DataAnalysisProblem before.
  • Added coloring in ScatterPlot.
  • Removed IPreprocessingContext interface.
  • Reformatted code:
    • Added missing copyright headers.
    • Corrected namespaces.
    • Deleted unnecessary usings.
    • Applied correct formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/CorrelationMatrixContent.cs

    r12012 r13502  
    2121
    2222using System.Drawing;
     23using System.Linq;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    3233    }
    3334
    34     private IPreprocessingContext Context { get; set; }
     35    private PreprocessingContext Context { get; set; }
    3536    private ITransactionalPreprocessingData PreprocessingData {
    3637      get { return Context.Data; }
     
    3940    public DataAnalysisProblemData ProblemData {
    4041      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();
    4346      }
    4447    }
    4548
    46     public CorrelationMatrixContent(IPreprocessingContext context) {
     49    public CorrelationMatrixContent(PreprocessingContext context) {
    4750      Context = context;
    4851    }
     
    5053    public CorrelationMatrixContent(CorrelationMatrixContent original, Cloner cloner)
    5154      : base(original, cloner) {
    52         Context = original.Context;
     55      Context = original.Context;
    5356    }
    5457
Note: See TracChangeset for help on using the changeset viewer.