Type | Description |
Function or value | Description |
Full Usage:
Dispersion dist lCentroids dataset
Parameters:
Distance<'a>
-
lCentroids : 'a list
-
dataset : seq<'a>
-
Returns: float
|
Calculates the average squared distance from the data points
Example
|
Full Usage:
DispersionOfClusterResult kmeansResult
Parameters:
KClusteringResult<'a>
-
Returns: float
|
Calculates the average squared distance from the data points
Example
|
Full Usage:
avgCentroid current sample
Parameters:
float[]
sample : float[] array
Returns: float[]
|
|
Full Usage:
compute dist factory aggregator dataset k
Parameters:
Distance<'a>
factory : CentroidsFactory<'a>
aggregator : ToCentroid<'a>
dataset : 'a array
k : int
Returns: KClusteringResult<'a>
|
|
Full Usage:
createKClusteringResult centroids classifier closestDistances distanceMetric
Parameters:
(int * 'a) array
-
classifier : 'a -> int * 'a
-
closestDistances : (int * float) array
-
distanceMetric : Distance<'a>
-
Returns: KClusteringResult<'a>
|
Example
|
Full Usage:
initCVMAX sampleRows k
Parameters:
float[][]
k : int
Returns: float[][]
|
|
Full Usage:
kmeans dist factory dataset k
Parameters:
Distance<float[]>
factory : CentroidsFactory<float[]>
dataset : float[] array
k : int
Returns: KClusteringResult<float[]>
|
|
Full Usage:
nearest dist lCentroids datapoint
Parameters:
Distance<'a>
lCentroids : 'a array
datapoint : 'a
Returns: int * 'a
|
|
Full Usage:
nearestDistance dist lCentroids datapoint
Parameters:
Distance<'a>
-
lCentroids : 'a array
-
datapoint : 'a
-
Returns: float
|
Example
|
Full Usage:
randomCentroids rng sample k
Parameters:
Random
sample : 'a array
k : int
Returns: 'a[]
|
|