|
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
<ExtensionAttribute>
Public Shared Function Distances(Of TKernel As {Object, IDistance(Of TData), ICloneable}, TData) (
kernel As TKernel,
inputs As TData(),
samples As Integer
) As Double()
Request Example
View SourceParameters
- 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:
DoubleUsage 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