GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
std::map< std::string,
std::string > 
info
 

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.

NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service this request.

Definition at line 177 of file aggregate_k_means.h.

Constructor & Destructor Documentation

gpudb::AggregateKMeansResponse::AggregateKMeansResponse ( )
inline

Constructs an AggregateKMeansResponse object with default parameter values.

Definition at line 184 of file aggregate_k_means.h.

Member Data Documentation

int64_t gpudb::AggregateKMeansResponse::count

Definition at line 199 of file aggregate_k_means.h.

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

Definition at line 197 of file aggregate_k_means.h.

std::map<std::string, std::string> gpudb::AggregateKMeansResponse::info

Definition at line 203 of file aggregate_k_means.h.

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

Definition at line 196 of file aggregate_k_means.h.

int32_t gpudb::AggregateKMeansResponse::numIters

Definition at line 202 of file aggregate_k_means.h.

double gpudb::AggregateKMeansResponse::rmsDist

Definition at line 200 of file aggregate_k_means.h.

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

Definition at line 198 of file aggregate_k_means.h.

double gpudb::AggregateKMeansResponse::tolerance

Definition at line 201 of file aggregate_k_means.h.


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