Click or drag to resize
Accord.NET (logo)

KernelDistancesTKernel, TData Method (TKernel, TData, 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<TKernel, TData>(
	this TKernel kernel,
	TData[] inputs,
	int samples
)
where TKernel : Object, IDistance<TData>, ICloneable
Request Example View Source

Parameters

kernel
Type: TKernel
The inner kernel.
inputs
Type: TData
The inputs points.
samples
Type: SystemInt32
The number of samples.

Type Parameters

TKernel
TData

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