- Timestamp:
- 01/16/20 12:34:45 (5 years ago)
- Location:
- branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r17369 r17401 123 123 var vectorDiv = new VectorDivision(); 124 124 var vectorSum = new VectorSum(); 125 var vectorAvg = new Vector Average();125 var vectorAvg = new VectorMean(); 126 126 #endregion 127 127 -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r17369 r17401 219 219 <Compile Include="SymbolicDataAnalysisProblem.cs" /> 220 220 <Compile Include="SymbolicDataAnalysisSolutionImpactValuesCalculator.cs" /> 221 <Compile Include="Symbols\Vector Average.cs" />221 <Compile Include="Symbols\VectorMean.cs" /> 222 222 <Compile Include="Symbols\VectorSum.cs" /> 223 223 <Compile Include="Symbols\VectorSubtraction.cs" /> -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/OpCodes.cs
r17367 r17401 147 147 public const byte VectorDiv = (byte)OpCode.VectorDiv; 148 148 public const byte VectorSum = (byte)OpCode.VectorSum; 149 public const byte Vector Avg= (byte)OpCode.VectorAvg;149 public const byte VectorMean = (byte)OpCode.VectorAvg; 150 150 151 151 … … 210 210 { typeof(VectorDivision), OpCodes.VectorDiv }, 211 211 { typeof(VectorSum), OpCodes.VectorSum }, 212 { typeof(Vector Average), OpCodes.VectorAvg}212 { typeof(VectorMean), OpCodes.VectorMean } 213 213 }; 214 214 -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r17400 r17401 536 536 return v.Sum(); 537 537 } 538 case OpCodes.Vector Avg: {538 case OpCodes.VectorMean: { 539 539 DoubleVector v = VectorEvaluate(dataset, ref row, state); 540 540 return v.Mean(); -
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VectorMean.cs
r17400 r17401 26 26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { 27 27 [StorableType("85FF9A2E-207C-4008-BB8B-0C0363885443")] 28 [Item("Vector Average", "Symbol that represents the averagefunction.")]29 public sealed class Vector Average: Symbol {28 [Item("VectorMean", "Symbol that represents the mean function.")] 29 public sealed class VectorMean : Symbol { 30 30 private const int minimumArity = 1; 31 31 private const int maximumArity = 1; … … 39 39 40 40 [StorableConstructor] 41 private Vector Average(StorableConstructorFlag _) : base(_) { }42 private Vector Average(VectorAverageoriginal, Cloner cloner) : base(original, cloner) { }41 private VectorMean(StorableConstructorFlag _) : base(_) { } 42 private VectorMean(VectorMean original, Cloner cloner) : base(original, cloner) { } 43 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new Vector Average(this, cloner);44 return new VectorMean(this, cloner); 45 45 } 46 public Vector Average() : base("VectorAverage", "Symbol that represents the averagefunction.") { }46 public VectorMean() : base("VectorMean", "Symbol that represents the mean function.") { } 47 47 } 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.