Changeset 16308 for branches/2845_EnhancedProgress/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/Distances/DistanceBase.cs
- Timestamp:
- 11/20/18 13:52:40 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
/stable reverse-merged: 15587-15588 /trunk/sources removed
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/stable/HeuristicLab.Algorithms.DataAnalysis reverse-merged: 15587 /trunk/sources/HeuristicLab.Algorithms.DataAnalysis removed
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:mergeinfo deleted
-
branches/2845_EnhancedProgress/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/Distances/DistanceBase.cs
r16307 r16308 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 [StorableClass] 30 30 public abstract class DistanceBase<T> : Item, IDistance<T> { 31 31 32 #region HLConstructors & Cloning 32 33 [StorableConstructor] … … 43 44 44 45 public double Get(object x, object y) { 45 return Get((T) x, (T)y);46 return Get((T)x, (T)y); 46 47 } 47 48 48 49 public IComparer GetDistanceComparer(object item) { 49 return new DistanceComparer((T) 50 return new DistanceComparer((T)item, this); 50 51 } 51 52 52 internalclass DistanceComparer : IComparer<T>, IComparer {53 private class DistanceComparer : IComparer<T>, IComparer { 53 54 private readonly T item; 54 55 private readonly IDistance<T> dist; … … 64 65 65 66 public int Compare(object x, object y) { 66 return Compare((T) x, (T)y);67 return Compare((T)x, (T)y); 67 68 } 68 69 }
Note: See TracChangeset
for help on using the changeset viewer.