Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/17 10:22:08 (6 years ago)
Author:
bwerth
Message:

#2850 reenabled backwards compatibility; fixed distances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Weighted TSNE/3.4/TSNE/Distances/DistanceBase.cs

    r15479 r15487  
    2828namespace HeuristicLab.Algorithms.DataAnalysis {
    2929  [StorableClass]
    30   public abstract class DistanceBase<T> : ParameterizedNamedItem, IDistance<T> {
    31 
     30  public abstract class DistanceBase<T> : Item, IDistance<T> {
    3231    #region HLConstructors & Cloning
    3332    [StorableConstructor]
     
    4443
    4544    public double Get(object x, object y) {
    46       return Get((T)x, (T)y);
     45      return Get((T) x, (T) y);
    4746    }
    4847
    4948    public IComparer GetDistanceComparer(object item) {
    50       return new DistanceComparer((T)item, this);
     49      return new DistanceComparer((T) item, this);
    5150    }
    5251
     
    6564
    6665      public int Compare(object x, object y) {
    67         return Compare((T)x, (T)y);
     66        return Compare((T) x, (T) y);
    6867      }
    6968    }
Note: See TracChangeset for help on using the changeset viewer.