Changeset 15338 for branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/InfillCriteria/NeighbourDistance.cs
- Timestamp:
- 08/22/17 15:01:46 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/InfillCriteria/NeighbourDistance.cs
r15064 r15338 36 36 public class NeighbourDistance : InfillCriterionBase { 37 37 38 private IVantagePointTree<IEnumerable<double>> Points;38 private VantagePointTree<IEnumerable<double>> Points; 39 39 #region Constructors, Serialization and Cloning 40 40 [StorableConstructor] 41 41 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) { } 45 43 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); } 49 45 #endregion 50 46 … … 55 51 Points.Search(vector, 1, out neighbours, out distances); 56 52 return distances[0]; 57 //return RegressionSolution.ProblemData.AllIndices.Min(i => DistanceToSample(vector, i));58 53 } 59 54 60 55 public override void Initialize() { 61 56 Points = CreateTree(); 62 }63 64 private double DistanceToSample(RealVector vector, int i) {65 throw new NotImplementedException();66 57 } 67 58
Note: See TracChangeset
for help on using the changeset viewer.