|
GaussianDistancesTDistance, TInput Method (TInput, Int32, TDistance)
|
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
Syntaxpublic static double[] Distances<TDistance, TInput>(
TInput[] inputs,
int samples,
TDistance distance
)
where TDistance : Object, IDistance<TInput>
Public Shared Function Distances(Of TDistance As {Object, IDistance(Of TInput)}, TInput) (
inputs As TInput(),
samples As Integer,
distance As TDistance
) As Double()
Request Example
View SourceParameters
- inputs
- Type: TInput
The inputs points. - samples
- Type: SystemInt32
The number of samples. - distance
- Type: TDistance
The distance function to be used in the Gaussian kernel. Default is SquareEuclidean.
Type Parameters
- TDistance
- TInput
Return Value
Type:
Double
See Also