FeatureScaling
Apply a feature scaling to one or more sample(s) and get output range between [fA, fB] in the case of TCVN_FST1_MINMAX.
Syntax
Definition:
HRESULT FeatureScaling(
HRESULT hrPrev,
ITcVnContainer* ipSamples,
ITcVnContainer* ipScales,
ITcVnContainer*& ipScaledSamples,
double fA = 0.0,
double fB = 1.0
)
Parameters
Name |
Type |
Default |
Description |
---|---|---|---|
hrPrev |
|
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) | |
ipSamples |
|
Container holding one or more input sample(s) (ContainerType_Vector_REAL, ContainerType_Vector_LREAL, ContainerType_Vector_Vector_REAL, or ContainerType_Vector_Vector_LREAL) | |
ipScales |
|
Container with the scaling parameters of each feature (type ContainerType_Vector_REAL or ContainerType_Vector_LREAL). | |
ipScaledSamples |
|
Returns the scaled sample(s) using the same type like ipSamples. If the same container ipSamples is uesd, the source data will be replaced. | |
fA |
double |
0.0 |
represents the lower bound of the range for TCVN_FST1_MINMAX |
fB |
double |
1.0 |
represents the upper bound of the range for TCVN_FST1_MINMAX |
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 |