Changeset 14885
- Timestamp:
- 04/24/17 14:45:37 (8 years ago)
- Location:
- branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4
- Files:
-
- 1 deleted
- 1 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj
r14872 r14885 307 307 <Compile Include="Interfaces\ISupportVectorMachineSolution.cs" /> 308 308 <Compile Include="Interfaces\IDataAnalysisAlgorithm.cs" /> 309 <Compile Include="KernelRidgeRegression\KernelFunctions\CicularKernel.cs" /> 310 <Compile Include="KernelRidgeRegression\KernelFunctions\GaussianKernel.cs" /> 311 <Compile Include="KernelRidgeRegression\KernelFunctions\InverseMultiquadraticKernel.cs" /> 312 <Compile Include="KernelRidgeRegression\KernelFunctions\KernelBase.cs" /> 313 <Compile Include="KernelRidgeRegression\KernelFunctions\LaplacianKernel.cs" /> 314 <Compile Include="KernelRidgeRegression\KernelFunctions\MultiquadraticKernel.cs" /> 315 <Compile Include="KernelRidgeRegression\KernelFunctions\PolysplineKernel.cs" /> 316 <Compile Include="KernelRidgeRegression\KernelFunctions\ThinPlatePolysplineKernel.cs" /> 317 <Compile Include="KernelRidgeRegression\KernelRidgeRegression.cs" /> 318 <Compile Include="KernelRidgeRegression\KernelRidgeRegressionModel.cs" /> 309 319 <Compile Include="kMeans\KMeansClustering.cs" /> 310 320 <Compile Include="kMeans\KMeansClusteringModel.cs" /> … … 369 379 <Compile Include="Plugin.cs" /> 370 380 <Compile Include="Properties\AssemblyInfo.cs" /> 371 <Compile Include="RadialBasisFunctions\KernelFunctions\CicularKernel.cs" />372 <Compile Include="RadialBasisFunctions\KernelFunctions\GaussianKernel.cs" />373 <Compile Include="RadialBasisFunctions\KernelFunctions\InverseMultiquadraticKernel.cs" />374 <Compile Include="RadialBasisFunctions\KernelFunctions\KernelBase.cs" />375 <Compile Include="RadialBasisFunctions\KernelFunctions\LaplacianKernel.cs" />376 <Compile Include="RadialBasisFunctions\KernelFunctions\MultiquadraticKernel.cs" />377 <Compile Include="RadialBasisFunctions\KernelFunctions\PolysplineKernel.cs" />378 <Compile Include="RadialBasisFunctions\KernelFunctions\ThinPlatePolysplineKernel.cs" />379 <Compile Include="RadialBasisFunctions\RadialBasisFunctionModel.cs" />380 <Compile Include="RadialBasisFunctions\RadialBasisRegression.cs" />381 381 <Compile Include="RandomForest\RandomForestClassificationSolution.cs" /> 382 382 <Compile Include="RandomForest\RandomForestClassification.cs" /> … … 402 402 <Compile Include="TSNE\Distances\IndexedItemDistance.cs" /> 403 403 <Compile Include="TSNE\Distances\InnerProductDistance.cs" /> 404 <Compile Include="TSNE\Distances\ManhattanDistance.cs" /> 404 405 <Compile Include="TSNE\Interfaces\IDistance.cs" /> 405 406 <Compile Include="TSNE\Interfaces\ISpacePartitioningTree.cs" /> … … 434 435 </BootstrapperPackage> 435 436 </ItemGroup> 436 <ItemGroup> 437 <Folder Include="RadialBasisFunctions\Distances\" /> 438 <Folder Include="RadialBasisFunctions\Interfaces\" /> 439 </ItemGroup> 437 <ItemGroup /> 440 438 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 441 439 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/Distances/ManhattanDistance.cs
r14884 r14885 50 50 } 51 51 52 public static double GetDistance(IEnumerable<double> a, IEnumerable<double> b, double threshold) {53 double sum = 0;54 var it1 = a.GetEnumerator();55 var it2 = b.GetEnumerator();56 while (sum > threshold && it1.MoveNext() && it2.MoveNext()) {57 sum += Math.Abs(it1.Current - it2.Current);58 }59 it1.Dispose();60 it2.Dispose();61 return sum;62 }63 64 52 public override double Get(IEnumerable<double> a, IEnumerable<double> b) { 65 53 return GetDistance(a.ToArray(), b.ToArray()); 66 54 } 67 68 public override double Get(IEnumerable<double> a, IEnumerable<double> b, double threshold) {69 return GetDistance(a, b, threshold);70 }71 72 73 55 } 74 56 }
Note: See TracChangeset
for help on using the changeset viewer.