Computes initial clusters for the K-Means algorithm in the batch processing mode.
More...
template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
class daal::algorithms::kmeans::init::interface1::Batch< algorithmFPType, method >
- Template Parameters
-
algorithmFPType | Data type to use in intermediate computations of initial clusters for the K-Means algorithm, double or float |
method | Method of computing initial clusters for the algorithm, Method |
- Enumerations
- Method Methods of computing initial clusters for the K-Means algorithm
- InputId Identifiers of input objects for computing initial clusters for the K-Means algorithm
- ResultId Identifiers of results of computing initial clusters for the K-Means algorithm
◆ Batch() [1/2]
Batch |
( |
size_t |
nClusters | ) |
|
|
inline |
Main constructor
- Parameters
-
[in] | nClusters | Number of clusters |
◆ Batch() [2/2]
Batch |
( |
const Batch< algorithmFPType, method > & |
other | ) |
|
|
inline |
Constructs an algorithm that computes initial clusters for the 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 |
◆ clone()
Returns a pointer to the newly allocated algorithm that computes initial clusters for the K-Means algorithm with a copy of input objects and parameters of this algorithm
- Returns
- Pointer to the newly allocated algorithm
◆ getMethod()
virtual int getMethod |
( |
| ) |
const |
|
inlinevirtual |
Returns the method of the algorithm
- Returns
- Method of the algorithm
Implements AlgorithmIface.
◆ getResult()
Returns the structure that contains the results of computing initial clusters for the K-Means algorithm
- Returns
- Structure that contains the results of computing initial clusters for the K-Means algorithm
◆ setResult()
Registers user-allocated memory to store the results of computing initial clusters for the K-Means algorithm
- Parameters
-
[in] | result | Structure to store the results of computing initial clusters for the K-Means algorithm |
◆ input
◆ parameter
K-Means parameters structure
The documentation for this class was generated from the following file: