CreateKmppModel
Create a k-means++ model of the specified type. The initial reference count is set to one if a new model is created and kept, otherwise. Models of this type neither support on-line training (sample by sample) nor retraining.
Syntax
Definition:
HRESULT CreateKmppModel(
HRESULT hrPrev,
ITcVnMlModel*& ipMlModel,
ETcVnPrototypeClusterer eKmppType,
ULONG nK,
bool bDoublePrecision = false,
ULONG nMaxIterations = 0,
double fEpsilon = 0.0
)
Parameters
Name |
Type |
Default |
Description |
---|---|---|---|
hrPrev |
|
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) | |
ipMlModel |
|
Returns the created model (Non-zero interface pointers are reused.) | |
eKmppType |
|
k-means++ model type | |
nK |
ULONG |
|
Parameter k (number of clusters) |
bDoublePrecision |
bool |
false |
If true, the model is generated with double precision (LREAL) instead of single precision (REAL). (default: FALSE) |
nMaxIterations |
ULONG |
0 |
Maximum number of iterations (triggers the usage of the default value of 10 if it equals 0) |
fEpsilon |
double |
0.0 |
Maximum allowed difference of the error between two successive iterations (triggers the usage of the default value of 0.001 if it equals 0) |
Required License
TC3 Vision Machine Learning
System Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4024.54 or later | PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU | Tc3_Vision |