Changeset 8725 for branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalysisCalculator.cs
- Timestamp:
- 10/03/12 17:13:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/Analysis/InformationAnalysisCalculator.cs
r7128 r8725 25 25 get { return (LookupParameter<IntValue>)Parameters["Regularity"]; } 26 26 } 27 public LookupParameter<IntValue> DiversityParameter { 28 get { return (LookupParameter<IntValue>)Parameters["Diversity"]; } 29 } 27 30 public LookupParameter<DoubleArray> InformationContentParameter { 28 31 get { return (LookupParameter<DoubleArray>)Parameters["InformationContent"]; } … … 34 37 get { return (LookupParameter<DoubleArray>)Parameters["DensityBasinInformation"]; } 35 38 } 39 public LookupParameter<DoubleArray> TotalEntropyParameter { 40 get { return (LookupParameter<DoubleArray>)Parameters["TotalEntropy"]; } 41 } 36 42 public LookupParameter<DoubleArray> EpsilonQuantilesParameter { 37 43 get { return (LookupParameter<DoubleArray>)Parameters["EpsilonQuantiles"]; } … … 42 48 [StorableConstructor] 43 49 protected InformationAnalysisCalculator(bool deserializing) : base(deserializing) { } 44 public InformationAnalysisCalculator() 45 : base() { 50 public InformationAnalysisCalculator() { 46 51 Parameters.Add(new LookupParameter<DataTable>("QualityTrail", "Historical quality trail of a walk over a fitness landscape.")); 47 52 Parameters.Add(new ValueLookupParameter<IntValue>("NQuantiles", "Number of epsilon quantiles to calculate information analysis.")); 48 53 Parameters.Add(new LookupParameter<DoubleValue>("InformationStability")); 49 54 Parameters.Add(new LookupParameter<IntValue>("Regularity")); 55 Parameters.Add(new LookupParameter<IntValue>("Diversity")); 50 56 Parameters.Add(new LookupParameter<DoubleArray>("InformationContent")); 51 57 Parameters.Add(new LookupParameter<DoubleArray>("PartialInformationContent")); 52 58 Parameters.Add(new LookupParameter<DoubleArray>("DensityBasinInformation")); 59 Parameters.Add(new LookupParameter<DoubleArray>("TotalEntropy")); 53 60 Parameters.Add(new LookupParameter<DoubleArray>("EpsilonQuantiles", "Considered values of epsilon, selected as quantiles of actual quality differences")); 54 61 } … … 66 73 NQuantilesParameter.ActualValue.Value); 67 74 RegularityParameter.ActualValue = new IntValue(analysis.Regularity); 75 DiversityParameter.ActualValue = new IntValue(analysis.Diversity); 68 76 InformationStabilityParameter.ActualValue = new DoubleValue(analysis.InformationStability); 69 77 InformationContentParameter.ActualValue = new DoubleArray(analysis.InformationContent.ToArray()); 70 78 PartialInformationContentParameter.ActualValue = new DoubleArray(analysis.PartialInformationContent.ToArray()); 71 79 DensityBasinInformationParameter.ActualValue = new DoubleArray(analysis.DensityBasinInformation.ToArray()); 80 TotalEntropyParameter.ActualValue = new DoubleArray(analysis.TotalEntropy.ToArray()); 72 81 EpsilonQuantilesParameter.ActualValue = new DoubleArray(analysis.QualityDelta.ToArray()); 73 82 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.