Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/25/20 07:41:01 (4 years ago)
Author:
pfleck
Message:

#3040 Replaced own Vector with MathNet.Numerics Vector.

Location:
branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj

    r17401 r17448  
    115115      <HintPath>..\..\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.NativeInterpreter-0.1.dll</HintPath>
    116116      <Private>False</Private>
     117    </Reference>
     118    <Reference Include="MathNet.Numerics, Version=4.9.0.0, Culture=neutral, processorArchitecture=MSIL">
     119      <SpecificVersion>False</SpecificVersion>
     120      <HintPath>..\..\bin\MathNet.Numerics.dll</HintPath>
    117121    </Reference>
    118122    <Reference Include="System" />
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs

    r17401 r17448  
    2020#endregion
    2121
     22using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>;
     23
    2224using System;
    2325using System.Collections.Generic;
     
    2830using HeuristicLab.Parameters;
    2931using HEAL.Attic;
     32using MathNet.Numerics.Statistics;
    3033
    3134namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     
    566569            DoubleVector s = VectorEvaluate(dataset, ref row, state);
    567570            for (int i = 1; i < currentInstr.nArguments; i++) {
    568               s *= VectorEvaluate(dataset, ref row, state);
     571              s = s.PointwiseMultiply(VectorEvaluate(dataset, ref row, state));
    569572            }
    570573            return s;
     
    579582
    580583        case OpCodes.VectorVariable: {
    581             if (row < 0 || row >= dataset.Rows) return new DoubleVector(new[] { double.NaN });
     584            if (row < 0 || row >= dataset.Rows) return DoubleVector.Build.Dense(new[] { double.NaN });
    582585            var vectorVarTreeNode = currentInstr.dynamicNode as VectorVariableTreeNode;
    583586            return ((IList<DoubleVector>)currentInstr.data)[row] * vectorVarTreeNode.Weight;
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Plugin.cs.frame

    r17184 r17448  
    4747  [PluginDependency("HeuristicLab.Random", "3.3")]
    4848  [PluginDependency("HeuristicLab.Selection", "3.3")]
     49  [PluginDependency("HeuristicLab.MathNet.Numerics", "4.9.0")]
    4950  public class HeuristicLabProblemsDataAnalysisSymbolicPlugin : PluginBase {
    5051  }
  • branches/3040_VectorBasedGP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r17369 r17448  
    3535using HeuristicLab.Problems.Instances;
    3636
     37using DoubleVector = MathNet.Numerics.LinearAlgebra.Vector<double>;
     38
    3739namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    3840  [StorableType("59935E69-C4A5-480E-8FFB-D9669DE9BFD4")]
Note: See TracChangeset for help on using the changeset viewer.