[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

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
 
[Right Submenu]

 Summary

 arrays

 calendar

 cgi

 command_line

 db/ postgresql

 directory_operations

 enums

 files

 lock_files

 mysql

 numerics

 os

 pen

 sound

 source_info

 stats

 strings

 System

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]