Click or drag to resize
Accord.NET (logo)

KernelDistancesT Method (T, Double, Int32)

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<T>(
	this T kernel,
	double[][] inputs,
	int samples
)
where T : IDistance, ICloneable
Request Example View Source

Parameters

kernel
Type: T
The inner kernel.
inputs
Type: SystemDouble
The inputs points.
samples
Type: SystemInt32
The number of samples.

Type Parameters

T

Return Value

Type: Double

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also