GPUdb C++ API  Version 6.2.0.3
gpudb::AggregateKMeansResponse Struct Reference

A set of output parameters for aggregateKMeans(const AggregateKMeansRequest&) 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 aggregateKMeans(const AggregateKMeansRequest&) 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

◆ AggregateKMeansResponse()

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

◆ count

int64_t gpudb::AggregateKMeansResponse::count

Definition at line 198 of file aggregate_k_means.h.

◆ counts

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

Definition at line 196 of file aggregate_k_means.h.

◆ means

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

Definition at line 195 of file aggregate_k_means.h.

◆ numIters

int32_t gpudb::AggregateKMeansResponse::numIters

Definition at line 201 of file aggregate_k_means.h.

◆ rmsDist

double gpudb::AggregateKMeansResponse::rmsDist

Definition at line 199 of file aggregate_k_means.h.

◆ rmsDists

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

Definition at line 197 of file aggregate_k_means.h.

◆ tolerance

double gpudb::AggregateKMeansResponse::tolerance

Definition at line 200 of file aggregate_k_means.h.


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