Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/22/17 15:01:46 (7 years ago)
Author:
bwerth
Message:

#2745 fixed bug concerning new Start and StartAsync methods; passed CancellationToken to sub algorithms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/InfillCriteria/NeighbourDistance.cs

    r15064 r15338  
    3636  public class NeighbourDistance : InfillCriterionBase {
    3737
    38     private IVantagePointTree<IEnumerable<double>> Points;
     38    private VantagePointTree<IEnumerable<double>> Points;
    3939    #region Constructors, Serialization and Cloning
    4040    [StorableConstructor]
    4141    protected NeighbourDistance(bool deserializing) : base(deserializing) { }
    42 
    43     protected NeighbourDistance(NeighbourDistance original, Cloner cloner) : base(original, cloner) {
    44     }
     42    protected NeighbourDistance(NeighbourDistance original, Cloner cloner) : base(original, cloner) { }
    4543    public NeighbourDistance() { }
    46     public override IDeepCloneable Clone(Cloner cloner) {
    47       return new NeighbourDistance(this, cloner);
    48     }
     44    public override IDeepCloneable Clone(Cloner cloner) { return new NeighbourDistance(this, cloner); }
    4945    #endregion
    5046
     
    5551      Points.Search(vector, 1, out neighbours, out distances);
    5652      return distances[0];
    57       //return RegressionSolution.ProblemData.AllIndices.Min(i => DistanceToSample(vector, i));
    5853    }
    5954
    6055    public override void Initialize() {
    6156      Points = CreateTree();
    62     }
    63 
    64     private double DistanceToSample(RealVector vector, int i) {
    65       throw new NotImplementedException();
    6657    }
    6758
Note: See TracChangeset for help on using the changeset viewer.