Computes initial clusters for K-Means algorithm in the batch processing mode.
More...
template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
class daal::algorithms::kmeans::init::interface2::Batch< algorithmFPType, method >
- Template Parameters
-
algorithmFPType | Data type to use in intermediate computations of initial clusters for K-Means algorithm, double or float |
method | Method of computing initial clusters for the algorithm, Method |
- Enumerations
- Method Methods of computing initial clusters for K-Means algorithm
- InputId Identifiers of input objects for computing initial clusters for K-Means algorithm
- ResultId Identifiers of results of computing initial clusters for K-Means algorithm
Batch |
( |
size_t |
nClusters | ) |
|
Main constructor
- Parameters
-
[in] | nClusters | Number of clusters |
Batch |
( |
const Batch< algorithmFPType, method > & |
other | ) |
|
Constructs an algorithm that computes initial clusters for K-Means algorithm by copying input objects and parameters of another algorithm
- Parameters
-
[in] | other | An algorithm to be used as the source to initialize the input objects and parameters of the algorithm |
services::SharedPtr<Batch<algorithmFPType, method> > clone |
( |
| ) |
const |
|
inline |
Returns a pointer to the newly allocated algorithm that computes initial clusters for K-Means algorithm with a copy of input objects and parameters of this algorithm
- Returns
- Pointer to the newly allocated algorithm
virtual int getMethod |
( |
| ) |
const |
|
inlinevirtual |
Returns the method of the algorithm
- Returns
- Method of the algorithm
Returns the structure that contains the results of computing initial clusters for K-Means algorithm
- Returns
- Structure that contains the results of computing initial clusters for K-Means algorithm
services::Status setResult |
( |
const ResultPtr & |
result | ) |
|
|
inline |
Registers user-allocated memory to store the results of computing initial clusters for K-Means algorithm
- Parameters
-
[in] | result | Structure to store the results of computing initial clusters for K-Means algorithm |
The documentation for this class was generated from the following file: