Computes the results of K-Means algorithm in the second step of the distributed processing mode.
More...
template<typename algorithmFPType, Method method>
class daal::algorithms::kmeans::interface1::Distributed< step2Master, algorithmFPType, method >
- Template Parameters
-
algorithmFPType | Data type to use in intermediate computations of K-Means, double or float |
method | Computation method of the algorithm, Method |
- Enumerations
- Method Computation methods for K-Means algorithm
- InputId Identifiers of input objects for K-Means algorithm
- ResultId Identifiers of results of K-Means algorithm
- References
-
Distributed |
( |
size_t |
nClusters, |
|
|
size_t |
nIterations = 1 |
|
) |
| |
|
inline |
Main constructor
- Parameters
-
[in] | nClusters | Number of clusters |
[in] | nIterations | Number of iterations |
Constructs K-Means algorithm by copying input objects and parameters of another K-Means algorithm
- Parameters
-
[in] | other | An algorithm to be used as the source to initialize the input objects and parameters of the algorithm |
services::Status checkFinalizeComputeParams |
( |
| ) |
|
|
inline |
Validates the parameters of the finalizeCompute() method
Returns a pointer to the newly allocated K-Means algorithm with a copy of input objects and parameters of this K-Means algorithm
- Returns
- Pointer to the newly allocated algorithm
virtual int getMethod |
( |
| ) |
const |
|
inlinevirtual |
Returns the method of the algorithm
- Returns
- Method of the algorithm
PartialResultPtr getPartialResult |
( |
| ) |
|
|
inline |
Returns the structure that contains computed partial results
- Returns
- Structure that contains computed partial results
Returns the structure that contains the results of K-Means algorithm
- Returns
- Structure that contains the results of K-Means algorithm
services::Status setPartialResult |
( |
const PartialResultPtr & |
partialRes | ) |
|
|
inline |
Sets the structure that contains computed partial results
services::Status setResult |
( |
const ResultPtr & |
result | ) |
|
|
inline |
Registers user-allocated memory to store the results of K-Means algorithm
- Parameters
-
[in] | result | Structure to store the results of K-Means algorithm |
K-Means parameters structure
The documentation for this class was generated from the following file: