C# 클래스 SharpNeat.DistanceMetrics.DistanceMetricUtils

Static helper methods for distance metrics.
파일 보기 프로젝트 열기: colgreen/sharpneat

공개 메소드들

메소드 설명
CalculateCentroid ( IDistanceMetric distanceMetric, IList coordList ) : CoordinateVector

Calculates a centroid by comparing each coordinate with every other coordinate. The coord with the lowest average distance from all other coords is the most central coord (the centroid). This method uses an inefficient N*N comparison of coords to find a centroid. It is provided only as a last resort for distance metrics for which no means exist to calculate a centroid more directly.

비공개 메소드들

메소드 설명
CalculateMeanDistanceFromCoords ( IDistanceMetric distanceMetric, IList coordList, int idx ) : double

Calculate the mean distance of the specified coord from all of the other coords using the provided distance metric.

메소드 상세

CalculateCentroid() 공개 정적인 메소드

Calculates a centroid by comparing each coordinate with every other coordinate. The coord with the lowest average distance from all other coords is the most central coord (the centroid). This method uses an inefficient N*N comparison of coords to find a centroid. It is provided only as a last resort for distance metrics for which no means exist to calculate a centroid more directly.
public static CalculateCentroid ( IDistanceMetric distanceMetric, IList coordList ) : CoordinateVector
distanceMetric IDistanceMetric
coordList IList
리턴 SharpNeat.Core.CoordinateVector