make Distances.FindIndexNearest public

add tests for Distances.FindIndexNearest
This commit is contained in:
BobLd
2020-03-18 08:49:53 +00:00
committed by Eliot Jones
parent 8460b8bc1d
commit 7d52bc8be4
2 changed files with 1124 additions and 2 deletions

View File

@@ -130,7 +130,7 @@
/// <param name="pivotPoint"></param> /// <param name="pivotPoint"></param>
/// <param name="distanceMeasure">The distance measure to use.</param> /// <param name="distanceMeasure">The distance measure to use.</param>
/// <param name="distance">The distance between reference point, and its nearest neighbour.</param> /// <param name="distance">The distance between reference point, and its nearest neighbour.</param>
internal static int FindIndexNearest<T>(T element, IReadOnlyList<T> candidates, public static int FindIndexNearest<T>(T element, IReadOnlyList<T> candidates,
Func<T, PdfPoint> candidatesPoint, Func<T, PdfPoint> pivotPoint, Func<T, PdfPoint> candidatesPoint, Func<T, PdfPoint> pivotPoint,
Func<PdfPoint, PdfPoint, double> distanceMeasure, out double distance) Func<PdfPoint, PdfPoint, double> distanceMeasure, out double distance)
{ {
@@ -172,7 +172,7 @@
/// <param name="pivotLine"></param> /// <param name="pivotLine"></param>
/// <param name="distanceMeasure">The distance measure between two lines to use.</param> /// <param name="distanceMeasure">The distance measure between two lines to use.</param>
/// <param name="distance">The distance between reference line, and its nearest neighbour.</param> /// <param name="distance">The distance between reference line, and its nearest neighbour.</param>
internal static int FindIndexNearest<T>(T element, IReadOnlyList<T> candidates, public static int FindIndexNearest<T>(T element, IReadOnlyList<T> candidates,
Func<T, PdfLine> candidatesLine, Func<T, PdfLine> pivotLine, Func<T, PdfLine> candidatesLine, Func<T, PdfLine> pivotLine,
Func<PdfLine, PdfLine, double> distanceMeasure, out double distance) Func<PdfLine, PdfLine, double> distanceMeasure, out double distance)
{ {

File diff suppressed because it is too large Load Diff