Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14784 for branches


Ignore:
Timestamp:
03/27/17 12:35:03 (8 years ago)
Author:
gkronber
Message:

#2700 fixed build fail

Location:
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj

    r14767 r14784  
    422422    <Compile Include="TSNE\Distances\DistanceBase.cs" />
    423423    <Compile Include="TSNE\Distances\DataPointDistance.cs" />
    424     <Compile Include="TSNE\Distances\EuclidianDistance.cs" />
     424    <Compile Include="TSNE\Distances\EuclideanDistance.cs" />
    425425    <Compile Include="TSNE\Distances\InnerProductDistance.cs" />
    426     <Compile Include="TSNE\TSNEAnalysis.cs" />
    427426    <Compile Include="TSNE\PriorityQueue.cs" />
    428427    <Compile Include="TSNE\SPtree.cs" />
    429428    <Compile Include="TSNE\TSNE.cs" />
     429    <Compile Include="TSNE\TSNEStatic.cs" />
    430430    <Compile Include="TSNE\TSNEUtils.cs" />
    431431    <Compile Include="TSNE\VPTree.cs" />
  • branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/Distances/EuclideanDistance.cs

    r14783 r14784  
    2929namespace HeuristicLab.Algorithms.DataAnalysis {
    3030  [StorableClass]
    31   [Item("EuclidianNorm", "A norm function that uses Euclidean distance")]
    32   public class EuclidianDistance : DistanceBase<IEnumerable<double>> {
     31  [Item("EuclideanDistance", "A norm function that uses Euclidean distance")]
     32  public class EuclideanDistance : DistanceBase<IEnumerable<double>> {
    3333
    3434    #region HLConstructors & Boilerplate
    3535    [StorableConstructor]
    36     protected EuclidianDistance(bool deserializing) : base(deserializing) { }
    37     protected EuclidianDistance(EuclidianDistance original, Cloner cloner) : base(original, cloner) { }
    38     public override IDeepCloneable Clone(Cloner cloner) { return new EuclidianDistance(this, cloner); }
    39     public EuclidianDistance() { }
     36    protected EuclideanDistance(bool deserializing) : base(deserializing) { }
     37    protected EuclideanDistance(EuclideanDistance original, Cloner cloner) : base(original, cloner) { }
     38    public override IDeepCloneable Clone(Cloner cloner) { return new EuclideanDistance(this, cloner); }
     39    public EuclideanDistance() { }
    4040    #endregion
    4141
    42     #region statics
    4342    public static double GetDistance(double[] point1, double[] point2) {
    4443      if (point1.Length != point2.Length) throw new ArgumentException("Euclidean distance not defined on vectors of different length");
    4544      return Math.Sqrt(point1.Zip(point2, (a1, b1) => (a1 - b1) * (a1 - b1)).Sum());
    4645    }
    47     #endregion
    4846
    4947    public override double Get(IEnumerable<double> a, IEnumerable<double> b) {
Note: See TracChangeset for help on using the changeset viewer.