- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/CovariantParsimonyPressure.cs
r5265 r5275 32 32 using HeuristicLab.Problems.DataAnalysis.Evaluators; 33 33 using HeuristicLab.Analysis; 34 using HeuristicLab.Common; 34 35 35 36 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 80 81 } 81 82 82 public CovariantParsimonyPressure(bool deserializing) : base(deserializing) { } 83 protected CovariantParsimonyPressure(bool deserializing) : base(deserializing) { } 84 protected CovariantParsimonyPressure(CovariantParsimonyPressure original, Cloner clone) : base(original, clone) { } 83 85 public CovariantParsimonyPressure() 84 86 : base() { … … 98 100 Parameters.Add(new ValueLookupParameter<BoolValue>("InvertComplexityAdaption")); 99 101 } 102 103 public override IDeepCloneable Clone(Cloner cloner) { 104 return new CovariantParsimonyPressure(this, cloner); 105 } 106 100 107 101 108 [StorableHook(Persistence.Default.CompositeSerializers.Storable.HookType.AfterDeserialization)] -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/CovariantParsimonyPressureAdder.cs
r5265 r5275 32 32 using HeuristicLab.Problems.DataAnalysis.Evaluators; 33 33 using HeuristicLab.Analysis; 34 using HeuristicLab.Common; 34 35 35 36 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 66 67 67 68 [StorableConstructor] 68 public CovariantParsimonyPressureAdder(bool deserializing) : base(deserializing) { } 69 protected CovariantParsimonyPressureAdder(bool deserializing) : base(deserializing) { } 70 protected CovariantParsimonyPressureAdder(CovariantParsimonyPressureAdder original, Cloner cloner) : base(original, cloner) { } 69 71 public CovariantParsimonyPressureAdder() 70 72 : base() { … … 79 81 Parameters.Add(new ValueLookupParameter<BoolValue>("ApplyParsimonyPressure")); 80 82 } 81 83 public override IDeepCloneable Clone(Cloner cloner) { 84 return new CovariantParsimonyPressureAdder(this, cloner); 85 } 82 86 [StorableHook(Persistence.Default.CompositeSerializers.Storable.HookType.AfterDeserialization)] 83 87 private void AfterDeserialization() { -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/DynOpEqComparator.cs
r5265 r5275 30 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 31 31 using System.Collections.Generic; 32 using HeuristicLab.Common; 32 33 33 34 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 81 82 } 82 83 84 [StorableConstructor] 85 protected DynOpEqComparator(bool deserializing) : base(deserializing) { } 86 protected DynOpEqComparator(DynOpEqComparator original, Cloner cloner) 87 : base(original, cloner) { 88 } 83 89 public DynOpEqComparator() 84 90 : base() { … … 100 106 } 101 107 108 public override IDeepCloneable Clone(Cloner cloner) { 109 return new DynOpEqComparator(this, cloner); 110 } 102 111 public override IOperation Apply() { 103 112 if (ResultParameter.ActualValue == null || ResultParameter.ActualValue.Value == true) { -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/DynOpEqHistogramInitializer.cs
r5265 r5275 30 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 31 31 using System.Collections.Generic; 32 using HeuristicLab.Common; 32 33 33 34 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 63 64 } 64 65 66 [StorableConstructor] 67 protected DynOpEqHistogramInitializer(bool deserializing) : base(deserializing) { } 68 protected DynOpEqHistogramInitializer(DynOpEqHistogramInitializer original, Cloner cloner) 69 : base(original, cloner) { 70 } 65 71 public DynOpEqHistogramInitializer() 66 72 : base() { … … 75 81 Parameters.Add(new LookupParameter<BoolValue>("Maximization")); 76 82 } 77 83 public override IDeepCloneable Clone(Cloner cloner) { 84 return new DynOpEqHistogramInitializer(this, cloner); 85 } 78 86 public override IOperation Apply() { 79 87 if (BinCapacityParameter.ActualValue == null) { -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/DynamicDepthLimitComparator.cs
r5265 r5275 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 31 using HeuristicLab.Common; 31 32 32 33 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 65 66 } 66 67 68 [StorableConstructor] 69 protected DynamicDepthLimitComparator(bool deserializing) : base(deserializing) { } 70 protected DynamicDepthLimitComparator(DynamicDepthLimitComparator original, Cloner cloner) 71 : base(original, cloner) { 72 } 73 67 74 public DynamicDepthLimitComparator() 68 75 : base() { … … 77 84 Parameters.Add(new ValueParameter<DoubleValue>("cLower", "", new DoubleValue(0.03))); 78 85 Parameters.Add(new ValueParameter<DoubleValue>("cRaise", "", new DoubleValue(0.015))); 86 } 87 88 public override IDeepCloneable Clone(Cloner cloner) { 89 return new DynamicDepthLimitComparator(this, cloner); 79 90 } 80 91 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/DynamicDepthLimitInitializer.cs
r5265 r5275 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 31 using HeuristicLab.Common; 31 32 32 33 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 41 42 } 42 43 44 [StorableConstructor] 45 protected DynamicDepthLimitInitializer(bool deserializing) : base(deserializing) { } 46 protected DynamicDepthLimitInitializer(DynamicDepthLimitInitializer original, Cloner cloner) 47 : base(original, cloner) { 48 } 43 49 public DynamicDepthLimitInitializer() 44 50 : base() { 45 51 Parameters.Add(new ValueLookupParameter<IntValue>("DynamicDepthLimit", "The current depth limit.")); 46 52 Parameters.Add(new ValueLookupParameter<IntValue>("InitialDepthLimit", "The initial depth limit.")); 53 } 54 public override IDeepCloneable Clone(Cloner cloner) { 55 return new DynamicDepthLimitInitializer(this, cloner); 47 56 } 48 57 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Operators/WeightedParentsQualityVarianceComparator.cs
r5265 r5275 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using HeuristicLab.Common; 30 31 31 32 namespace HeuristicLab.Problems.DataAnalysis.Operators { … … 61 62 } 62 63 64 [StorableConstructor] 65 protected WeightedParentsQualityVarianceComparator(bool deserializing) : base(deserializing) { } 66 protected WeightedParentsQualityVarianceComparator(WeightedParentsQualityVarianceComparator original, Cloner cloner) 67 : base(original, cloner) { 68 } 63 69 public WeightedParentsQualityVarianceComparator() 64 70 : base() { … … 75 81 Parameters.Add(new ScopeTreeLookupParameter<IntValue>("RightSideSamples", "The number of samples used to calculate the quality of the parent.")); 76 82 } 77 83 public override IDeepCloneable Clone(Cloner cloner) { 84 return new WeightedParentsQualityVarianceComparator(this, cloner); 85 } 78 86 public override IOperation Apply() { 79 87 double leftQuality = LeftSideParameter.ActualValue.Value; … … 114 122 double stat = (xmean - ymean) / Math.Sqrt(xvar / n + yvar / m); 115 123 double c = xvar / n / (xvar / n + yvar / m); 116 double df = (n - 1) * (m - 1) / ((m - 1) * AP.Math.Sqr(c) + (n - 1) * (1 - AP.Math.Sqr(c)));124 double df = (n - 1) * (m - 1) / ((m - 1) * alglib.math.sqr(c) + (n - 1) * (1 - alglib.math.sqr(c))); 117 125 if ((double)(stat) > (double)(0)) 118 p = 1 - 0.5 * ibetaf.incompletebeta(df / 2, 0.5, df / (df + AP.Math.Sqr(stat)));126 p = 1 - 0.5 * alglib.ibetaf.incompletebeta(df / 2, 0.5, df / (df + alglib.math.sqr(stat))); 119 127 else 120 p = 0.5 * ibetaf.incompletebeta(df / 2, 0.5, df / (df + AP.Math.Sqr(stat)));128 p = 0.5 * alglib.ibetaf.incompletebeta(df / 2, 0.5, df / (df + alglib.math.sqr(stat))); 121 129 double bothtails = 2 * Math.Min(p, 1 - p); 122 130 double lefttail = p;
Note: See TracChangeset
for help on using the changeset viewer.