[BUSH User Guide]
 
Home Page Introduction Tutorials Reference Packages Hacking
 
  Packages  
4.1 Using Packages
4.2 text_io (Console I/O)
4.3 text_io (File I/O)
4.4 sound
4.5 source_info
4.6 System
4.7 numerics
4.8 strings
4.9 command_line
4.10 lock_files
4.11 cgi
4.12 calendar
4.13 units
4.14 arrays
4.15 files
4.16 db (Database)
4.17 stats
4.18 pen
4.19 mysql
4.20 os
4.21 directory_operations
 
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