- publishing free software manuals
GNU Scientific Library Reference Manual - Revised Second Edition (v1.8)
by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, M. Booth, F. Rossi
Paperback (6"x9"), 636 pages, 60 figures
ISBN 0954161734
RRP £24.99 ($39.99)

Get a printed copy>>>

20 Statistics

This chapter describes the statistical functions in the library. The basic statistical functions include routines to compute the mean, variance and standard deviation. More advanced functions allow you to calculate absolute deviations, skewness, and kurtosis as well as the median and arbitrary percentiles. The algorithms use recurrence relations to compute average quantities in a stable way, without large intermediate values that might overflow or cause spurious cancellation errors.

The functions are available in versions for datasets in the standard floating-point and integer types. The versions for double precision floating-point data have the prefix gsl_stats and are declared in the header file ‘gsl_statistics_double.h’. The versions for integer data have the prefix gsl_stats_int and are declared in the header file ‘gsl_statistics_int.h’. Other types are declared in corresponding header files according to the standard GSL naming conventions (see section 2.9 Support for different numeric types).

ISBN 0954161734GNU Scientific Library Reference Manual - Revised Second Edition (v1.8)See the print edition