A library for working with phylogenetic and population genetic data.
v0.32.0
utils/math/kmeans.hpp File Reference
#include "genesis/utils/core/logging.hpp"
#include "genesis/utils/core/options.hpp"
#include "genesis/utils/math/random.hpp"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <functional>
#include <limits>
#include <random>
#include <stdexcept>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  Kmeans< Point >
 
struct  KmeansClusteringInfo
 Helper POD that stores the variances and number of data points of each centroid, as well as the distances from all data points to their assigned centroids. More...
 

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Enumerations

enum  KmeansInitializationStrategy { kRandomAssignments, kRandomCentroids, kKmeansPlusPlus, kNone }
 Enum of the initialization strategies offered by the Kmeans implementation. More...