Computes the results of the K-Means algorithm in the batch processing mode.
More...
◆ Batch() [1/2]
Constructs the K-Means algorithm in the batch processing mode by copying input objects and parameters of another K-Means algorithm
- Parameters
-
context | Context to manage the constructed algorithm |
other | An algorithm to be used as the source to initialize the input objects and parameters of the algorithm |
◆ Batch() [2/2]
Batch |
( |
DaalContext |
context, |
|
|
Class<? extends Number > |
cls, |
|
|
Method |
method, |
|
|
long |
nClusters, |
|
|
long |
maxIterations |
|
) |
| |
Constructs the K-Means algorithm in the batch processing mode
- Parameters
-
context | Context to manage the constructed algorithm |
cls | Data type to use in intermediate computations for the algorithm, Double.class or Float.class |
method | Computation method of the algorithm, Method |
nClusters | Number of clusters for the algorithm |
maxIterations | Maximum number of iterations |
◆ clone()
Returns the newly allocated K-Means algorithm in the batch processing mode with a copy of input objects and parameters of this K-Means algorithm
- Parameters
-
context | Context to manage the constructed algorithm |
- Returns
- The newly allocated algorithm
◆ compute()
Runs the K-Means algorithm
- Returns
- Result of the K-Means algorithm
◆ setResult()
void setResult |
( |
Result |
result | ) |
|
Registers user-allocated memory to store the results of the K-Means algorithm
- Parameters
-
result | Structure to store the results of the K-Means algorithm |
◆ input
◆ method
Computation method for the algorithm
◆ parameter
Parameters of the algorithm
The documentation for this class was generated from the following file: