InverseFeatureScaling (float)

Apply the inverse of feature scaling to a single value. [fA, fB] should be used if the scaling has been performed using TCVN_FST1_MINMAX with a predetermined output range.

Syntax

Definition:

HRESULT InverseFeatureScaling(
    HRESULT         hrPrev,
    float           fSample,
    ITcVnContainer* ipScales,
    float&          fInverseSample,
    double          fA = 0.0,
    double          fB = 1.0
)

Parameters

Name

Type

Default

Description

hrPrev

HRESULT

 

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

fSample

float

 

Sample value

ipScales

ITcVnContainer*

 

Container with the scaling parameters of each feature (type ContainerType_Vector_REAL or ContainerType_Vector_LREAL).

fInverseSample

float&

 

Returns the inversed sample.

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

InverseFeatureScaling (float) 1: Return value

HRESULT

Required License

TC3 Vision Machine Learning

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1. 4024.44 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision