Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Regression Analysis »
Statistics_OfArray
Computes basic statistical information out of an array of real numbers. The array must be not empty.
Syntax
C++
C#
void avl::Statistics_OfArray
(
const atl::Array<float>& inValues,
const int inOutlierCount,
const bool inUseSampleFormula,
atl::Optional<float&> outMean = atl::NIL,
atl::Optional<float&> outMedian = atl::NIL,
atl::Optional<float&> outStandardDeviation = atl::NIL,
atl::Optional<float&> outMinimum = atl::NIL,
atl::Optional<float&> outMaximum = atl::NIL,
atl::Optional<float&> outSpread = atl::NIL,
atl::Optional<float&> outLinearTrend = atl::NIL
)
void Statistics_OfArray
(
float[] inValues,
int inOutlierCount,
bool inUseSampleFormula,
out float? outMean,
out float? outMedian,
out float? outStandardDeviation,
out float? outMinimum,
out float? outMaximum,
out float? outSpread,
out float? outLinearTrend
)
Parameters
|
Name |
Type |
Range |
Default |
Description |
|
inValues |
const Array<float>& |
|
|
Values used to compute statistical informations |
|
inOutlierCount |
const int |
0 - + |
0 |
Defines how many outliers should be removed from the input values |
|
inUseSampleFormula |
const bool |
|
False |
Defines, whether to use population, or sample formulas. |
|
outMean |
Optional<float&> |
|
NIL |
Mean of the input values |
|
outMedian |
Optional<float&> |
|
NIL |
Median of the input values |
|
outStandardDeviation |
Optional<float&> |
|
NIL |
Standard deviation of the input values, treated as population |
|
outMinimum |
Optional<float&> |
|
NIL |
Minimum of the input values |
|
outMaximum |
Optional<float&> |
|
NIL |
Maximum of the input values |
|
outSpread |
Optional<float&> |
|
NIL |
Difference between maximum and minimum of the input values |
|
outLinearTrend |
Optional<float&> |
|
NIL |
First parameter of the linear regression function (multiplier) |
Errors
Error type |
Description |
DomainError |
No data available on input in Statistics_OfArray. |