knncolle
Collection of KNN methods in C++
Loading...
Searching...
No Matches
Public Attributes | List of all members
knncolle::KmknnOptions< Dim_, Index_, Store_ > Struct Template Reference

Options for KmknnBuilder and KmknnPrebuilt construction. More...

#include <Kmknn.hpp>

Public Attributes

double power = 0.5
 
std::shared_ptr< kmeans::Initialize< kmeans::SimpleMatrix< Store_, Index_, Dim_ >, Index_, Store_ > > initialize_algorithm
 
std::shared_ptr< kmeans::Refine< kmeans::SimpleMatrix< Store_, Index_, Dim_ >, Index_, Store_ > > refine_algorithm
 

Detailed Description

template<typename Dim_ = int, typename Index_ = int, typename Store_ = double>
struct knncolle::KmknnOptions< Dim_, Index_, Store_ >

Options for KmknnBuilder and KmknnPrebuilt construction.

This can also be created via the KmknnBuilder::Options definition, which ensures consistency with the template parameters used in KmknnBuilder.

Template Parameters
Dim_Integer type for the number of dimensions. When constructing a KmknnBuilder, this should be the same as Matrix_::dimension_type.
Index_Integer type for the indices. When constructing a KmknnBuilder, this should be the same as Matrix_::index_type.
Store_Floating point type for the stored data. When constructing a KmknnBuilder, this should be the same as Matrix_::data_type.

Member Data Documentation

◆ initialize_algorithm

template<typename Dim_ = int, typename Index_ = int, typename Store_ = double>
std::shared_ptr<kmeans::Initialize<kmeans::SimpleMatrix<Store_, Index_, Dim_>, Index_, Store_> > knncolle::KmknnOptions< Dim_, Index_, Store_ >::initialize_algorithm

Initialization method for the k-means clustering. If NULL, defaults to kmeans::InitializeKmeanspp.

◆ power

template<typename Dim_ = int, typename Index_ = int, typename Store_ = double>
double knncolle::KmknnOptions< Dim_, Index_, Store_ >::power = 0.5

Power of the number of observations, to define the number of cluster centers. By default, a square root is performed.

◆ refine_algorithm

template<typename Dim_ = int, typename Index_ = int, typename Store_ = double>
std::shared_ptr<kmeans::Refine<kmeans::SimpleMatrix<Store_, Index_, Dim_>, Index_, Store_> > knncolle::KmknnOptions< Dim_, Index_, Store_ >::refine_algorithm

Refinement method for the k-means clustering. If NULL, defaults to kmeans::RefineHartiganWong.


The documentation for this struct was generated from the following file: