10 #define MKNN_KMEANS_H_
16 #include "../metricknn_c.h"
21 int64_t num_iteration,
bool is_last_iteration,
void *state_pointer);
50 int64_t num_centroids);
66 int64_t maxIteration,
double maxSecondsProcess,
67 double pctOrNumberMinMovedVectors,
double pctOrNumberMinMovedCentroids);
70 double pctOrNumberSampleSize, int64_t terminationMaxIteration,
71 double terminationMaxSecondsProcess,
72 double terminationPctOrNumberMinMovedVectors,
73 double terminationPctOrNumberMinMovedCentroids);
84 MknnDataset *centroids_dataset,
bool release_centroids_on_release);
87 const char *parameters_mknn_index);
89 const char *parameters_mknn_resolver);
93 const char *filenameSavedState);
95 const char *filenameOutput,
double secondsAutoSave);
97 const char *filenameOutput);
99 mknn_kmeans_function_callback
function,
void *state_pointer);
104 bool dont_release_centroids_on_kmeans_release);
107 bool dont_release_assignations_on_kmeans_release);
113 int64_t num_assignations;
114 double sum_squared_error, average_squared_error;
115 double distances_minimum, distances_maximum;
116 double distances_average, distances_variance, distances_std_dev,
117 distances_skewness, distances_kurtosis;
118 double *averages_by_dimension;
119 double *variances_by_dimension;
122 double sum_squared_error;
123 double average_squared_error;
Definition: distance.c:17
Definition: mknn_kmeans.h:112
Definition: mknn_kmeans.h:121
Represents a constant for a datatype, like integer 8bits, float 32 bits, etc.
Definition: metricknn_c.h:35