Arrays and Buffers

Measure Reading Spread

medium

Reports the average and spread of the valid readings among eight.

What it teaches

Two sets of readings can share the same average while one swings far more from reading to reading. Report the average, then the spread: how far the readings typically sit from it. The array always has eight slots, but In_Count says how many hold readings this time. Leave the rest out of the maths.

Parameters

TagDirectionTypeDefaultDescription
In_AnalyzeInputBOOL0Request a new calculation
In_CountInputDINT8Valid samples, from 2 through 8
Cfg_MaxSpreadInputREAL2Nonnegative maximum acceptable sample standard deviation
Out_MeanOutputREAL0Mean of the valid samples
Out_SpreadOutputREAL0Sample standard deviation, dividing by count minus one
Sts_ValidOutputBOOL0Latest request had valid count and limit
Sts_UnstableOutputBOOL0Spread is strictly greater than the limit
Ref_SamplesInOutREAL[8]Read-only readings

Required behavior