F_VN_InverseFeatureScaling
Apply the inverse of feature scaling to one or more sample(s).
Syntax
Definition:
FUNCTION F_VN_InverseFeatureScaling : HRESULT
VAR_INPUT
ipSamples : ITcVnContainer;
ipScales : ITcVnContainer;
ipInverseSamples : Reference To ITcVnContainer;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
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). | |
ipInverseSamples |
Reference To ITcVnContainer |
Returns the inversed sample(s) using the scaling type and parameters of ipScales. It has the same type of ipSamples. If the same container ipSamples is used, the source data will be replaced. |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
Further information
The function F_VN_InverseFeatureScaling
inverts the scaling of one or more samples. The function F_VN_FeatureScaling can be used for scaling.
Parameter
Samples
One or more samples must be transferred as a container to ipSamples
.
Scaling
A container with the scaling type and the corresponding scaling parameters must be transferred to ipScales
. The container can be calculated using the function F_VN_GetFeatureScales or created using the structure described there.
Scaled samples
The inversely scaled samples are returned via the reference ipInverseSamples
.
Expert parameters
The expert variant F_VN_InverseFeatureScalingExp contains additional parameters.
Application
For example, an inverse feature scaling where the scaling was previously calculated using F_VN_FeatureScaling looks like this:
hr := F_VN_FeatureScaling(ipSamples, ipScales, ipSamplesScaled, hr);
hr := F_VN_InverseF
eatureScaling(
ipSamples := ipSamplesScaled,
ipScales := ipScales,
ipInverseSamples:= ipSamplesInvertedScaling,
hrPrev := hr);
Related functions
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 |