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


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

Type Parameters


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