- Timestamp:
- 11/21/11 16:23:48 (13 years ago)
- Location:
- branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r6968 r7025 20 20 #endregion 21 21 22 using System.Collections.Generic;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.PluginInfrastructure;27 25 28 26 namespace HeuristicLab.Problems.DataAnalysis { … … 45 43 ProblemData = problemData; 46 44 } 47 48 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) {49 throw new System.NotImplementedException();50 }51 52 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() {53 return ApplicationManager.Manager.GetInstances<IClassificationBenchmarkProblemDataGenerator>();54 }55 45 } 56 46 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs
r6968 r7025 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.PluginInfrastructure;26 25 27 26 namespace HeuristicLab.Problems.DataAnalysis { … … 44 43 ProblemData = problemData; 45 44 } 46 47 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) {48 throw new System.NotImplementedException();49 }50 51 public override System.Collections.Generic.IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() {52 return ApplicationManager.Manager.GetInstances<IClusteringBenchmarkProblemDataGenerator>();53 }54 45 } 55 46 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r6968 r7025 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 46 45 IDataAnalysisProblemData IDataAnalysisProblem.ProblemData { 47 46 get { return ProblemData; } 47 set { ProblemData = (T)value; } 48 48 } 49 49 public T ProblemData { … … 93 93 94 94 public abstract void ImportProblemDataFromFile(string fileName); 95 96 public abstract void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator);97 98 public abstract IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators();99 95 } 100 96 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblem.cs
r6968 r7025 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 22 using HeuristicLab.Common; 25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.PluginInfrastructure;28 25 29 26 namespace HeuristicLab.Problems.DataAnalysis { … … 46 43 ProblemData = problemData; 47 44 } 48 49 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() {50 return ApplicationManager.Manager.GetInstances<IRegressionBenchmarkProblemDataGenerator>();51 }52 53 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) {54 if (!(benchmarkGenerator is IRegressionBenchmarkProblemDataGenerator)) {55 throw new ArgumentException("BenchmarkGenerator is not an IRegressionBenchmarkProblemDataGenerator.");56 }57 58 IDataAnalysisProblemData problemData = benchmarkGenerator.GenerateProblemData();59 60 if (problemData is IRegressionProblemData)61 ProblemData = (IRegressionProblemData)problemData;62 else63 throw new InvalidCastException("ProblemDataGenerator didn't return an IRegressionProblemData.");64 }65 45 } 66 46 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblem.cs
r6968 r7025 20 20 #endregion 21 21 22 using System.Collections.Generic;23 22 using HeuristicLab.Common; 24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.PluginInfrastructure;27 25 28 26 namespace HeuristicLab.Problems.DataAnalysis { … … 45 43 ProblemData = problemData; 46 44 } 47 48 public override void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator) {49 throw new System.NotImplementedException();50 }51 52 public override IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators() {53 return ApplicationManager.Manager.GetInstances<ITimeSeriesBenchmarkProblemDataGenerator>();54 }55 45 } 56 46 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblem.cs
r6968 r7025 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using HeuristicLab.Core; 25 24 using HeuristicLab.Optimization; … … 28 27 public interface IDataAnalysisProblem : IProblem { 29 28 IParameter ProblemDataParameter { get; } 30 IDataAnalysisProblemData ProblemData { get; }29 IDataAnalysisProblemData ProblemData { get; set; } 31 30 event EventHandler ProblemDataChanged; 32 31 33 32 void ImportProblemDataFromFile(string fileName); 34 void CreateProblemDataFromBenchmark(IDataAnalysisBenchmarkProblemDataGenerator benchmarkGenerator);35 IEnumerable<IDataAnalysisBenchmarkProblemDataGenerator> GetBenchmarkProblemDataGenerators();36 33 } 37 34
Note: See TracChangeset
for help on using the changeset viewer.