GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
gpudb::AggregateKMeansResponse Struct Reference

A set of output parameters for const. More...

#include <gpudb/protocol/aggregate_k_means.h>

Public Member Functions

 AggregateKMeansResponse ()
 Constructs an AggregateKMeansResponse object with default parameter values. More...
 

Public Attributes

std::vector< std::vector
< double > > 
means
 
std::vector< int64_t > counts
 
std::vector< double > rmsDists
 
int64_t count
 
double rmsDist
 
double tolerance
 
int32_t numIters
 

Detailed Description

A set of output parameters for const.

This endpoint runs the k-means algorithm - a heuristic algorithm that attempts to do k-means clustering. An ideal k-means clustering algorithm selects k points such that the sum of the mean squared distances of each member of the set to the nearest of the k points is minimized. The k-means algorithm however does not necessarily produce such an ideal cluster. It begins with a randomly selected set of k points and then refines the location of the points iteratively and settles to a local minimum. Various parameters and options are provided to control the heuristic search.

Definition at line 171 of file aggregate_k_means.h.

Constructor & Destructor Documentation

gpudb::AggregateKMeansResponse::AggregateKMeansResponse ( )
inline

Constructs an AggregateKMeansResponse object with default parameter values.

Definition at line 178 of file aggregate_k_means.h.

Member Data Documentation

int64_t gpudb::AggregateKMeansResponse::count

Definition at line 192 of file aggregate_k_means.h.

std::vector<int64_t> gpudb::AggregateKMeansResponse::counts

Definition at line 190 of file aggregate_k_means.h.

std::vector<std::vector<double> > gpudb::AggregateKMeansResponse::means

Definition at line 189 of file aggregate_k_means.h.

int32_t gpudb::AggregateKMeansResponse::numIters

Definition at line 195 of file aggregate_k_means.h.

double gpudb::AggregateKMeansResponse::rmsDist

Definition at line 193 of file aggregate_k_means.h.

std::vector<double> gpudb::AggregateKMeansResponse::rmsDists

Definition at line 191 of file aggregate_k_means.h.

double gpudb::AggregateKMeansResponse::tolerance

Definition at line 194 of file aggregate_k_means.h.


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