Click or drag to resize
Accord.NET (logo)

GaussianDistancesTDistance, TInput Method (TInput, Int32, TDistance)

Computes the set of all distances between all points in a random subset of the data.

Namespace:  Accord.Statistics.Kernels
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double[] Distances<TDistance, TInput>(
	TInput[] inputs,
	int samples,
	TDistance distance
)
where TDistance : Object, IDistance<TInput>
Request Example View Source

Parameters

inputs
Type: TInput
The inputs points.
samples
Type: SystemInt32
The number of samples.
distance
Type: TDistance
The distance function to be used in the Gaussian kernel. Default is SquareEuclidean.

Type Parameters

TDistance
TInput

Return Value

Type: Double
See Also