Statistics_OfLoop


Computes basic statistical information out of real numbers appearing in consecutive iterations.

Syntax

C++
C#
Python
 
def Statistics_OfLoop(
	state: Statistics_OfLoopState,
	inValue: float,
	/,
	*,
	inBufferSize: int = 10,
	inOutlierCount: int = 0,
	inUseSampleFormula: bool = False
)
-> (
	outMean: float,
	outMedian: float,
	outStandardDeviation: float,
	outMinimum: float,
	outMaximum: float,
	outSpread: float,
	outLinearTrend: float
)

Parameters

Name Type Range Default Description
Input will be modified ioState Statistics_OfLoopState Stores information from previous iterations
Input value inValue float Value used to compute statistical informations
Input value inBufferSize int 1 - + 10 Defines how many numbers are taken into account
Input value inOutlierCount int 0 - + 0 Defines how many outliers should be removed from the input values
Input value inUseSampleFormula bool False Defines, whether to use population, or sample formulas.
Output value outMean float Mean of the input values
Output value outMedian float Median of the input values
Output value outStandardDeviation float Standard deviation of the input values
Output value outMinimum float Minimum of the input values
Output value outMaximum float Maximum of the input values
Output value outSpread float Difference between maximum and minimum of the input values
Output value outLinearTrend float First parameter of the linear regression function (multiplier)