ST_CM_MomentCoefficients_InitPars
Function-block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_MomentCoefficients_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nChannels : UDINT := 512; (* Number of channels. *)
nSubChannels : UDINT := 0; (* Number of subchannels. *)
nOrder : E_CM_MCoefOrder := E_CM_MCoefOrder.eCM_Kurtosis; (* Maximum order of the moment coefficients that are calculated. *)
bPopulationEstimates : BOOL := FALSE; (* Apply Bessel's correction to results. *)
bKurtosisExcess : BOOL := TRUE; (* Flag if kurtosis is reduced by 3. *)
END_STRUCT
END_TYPE
nChannels
defines the number of independent channels. This must be greater than zero.nSubChannels
defines the number of independent subchannels. This must be greater than or equal to zero.nOrder
is the maximum order of the moment coefficients (E_CM_MCoefOrder) that are calculated. This must be an integer between one and four. The order numbers are: 0 = counter, 1 = mean value, 2 = standard deviation, 3 = skew, 4 = excess kurtosis. The number of determined coefficients is (nOrder+1).bPopulationEstimates
is a Boolean value that indicates, whether the corresponding Bessel's correction is applied to the sample variance, skew and excess.bKurtosisExcess
is a Boolean value that specifies whether the excess is reduced by the value of the kurtosis of a normal distribution.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |