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