|
This part of the guide contains detailed descriptions of the
BUSH built-in packages.
4.17 stats Package
This package contains a set of statisticial calculations for numeric arrays,
including calculating averages, standard deviations and more.
r := stats.average( a )
Calculate the average (mean) value of the array.
Example: r := stats.average( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the array to average |
a |
in out |
numeric array type |
required |
the array to evaluate |
|
r := stats.max( a )
Find the maximum (largest) value of the array.
Example: r := stats.max( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the maximum value |
a |
in out |
numeric array type |
required |
the array to search |
|
r := stats.min( a )
Find the minimum (smallest) value of the array.
Example: r := stats.min( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the minimum value |
a |
in out |
numeric array type |
required |
the array to search |
|
r := stats.standard_deviation( a )
Calculate the standard deviation of the array elements.
Example: r := stats.standard_deviation( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the standard deviation |
a |
in out |
numeric array type |
required |
the array to evaluate |
|
r := stats.sum( a )
Calculate the total value of the array by adding all elements.
Example: r := stats.sum( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the total value |
a |
in out |
numeric array type |
required |
the array to sum |
|
r := stats.variance( a )
Calculate the variance of the array elements.
Example: r := stats.variance( numbers_collected );
Ada Equivalent: N/A
Parameters:
r |
result |
element type |
required |
the variance |
a |
in out |
numeric array type |
required |
the array to evaluate |
|
Back to Top
|