Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# Statistics::Descriptive 2.6

Date Added: November 23, 2010  |  Visits: 1.205

Statistics::Descriptive is a Perl module of basic descriptive statistical functions. SYNOPSIS use Statistics::Descriptive; \$stat = Statistics::Descriptive::Full->new(); \$stat->add_data(1,2,3,4); \$mean = \$stat->mean(); \$var = \$stat->variance(); \$tm = \$stat->trimmed_mean(.25); \$Statistics::Descriptive::Tolerance = 1e-10; This module provides basic functions used in descriptive statistics. It has an object oriented design and supports two different types of data storage and calculation objects: sparse and full. With the sparse method, none of the data is stored and only a few statistical measures are available. Using the full method, the entire data set is retained and additional functions are available. Whenever a division by zero may occur, the denominator is checked to be greater than the value \$Statistics::Descriptive::Tolerance, which defaults to 0.0. You may want to change this value to some small positive value such as 1e-24 in order to obtain error messages in case of very small denominators. Many of the methods (both Sparse and Full) cache values so that subsequent calls with the same arguments are faster. METHODS Sparse Methods \$stat = Statistics::Descriptive::Sparse->new(); Create a new sparse statistics object. \$stat->add_data(1,2,3); Adds data to the statistics variable. The cached statistical values are updated automatically. \$stat->count(); Returns the number of data items. \$stat->mean(); Returns the mean of the data. \$stat->sum(); Returns the sum of the data. \$stat->variance(); Returns the variance of the data. Division by n-1 is used. \$stat->standard_deviation(); Returns the standard deviation of the data. Division by n-1 is used. \$stat->min(); Returns the minimum value of the data set. \$stat->mindex(); Returns the index of the minimum value of the data set. \$stat->max(); Returns the maximum value of the data set. \$stat->maxdex(); Returns the index of the maximum value of the data set. \$stat->sample_range(); Returns the sample range (max - min) of the data set..

 Requirements: No special requirements Platforms: Linux Keyword: Data,  Data Set,  Libraries,  Module,  Perl Module,  Programming,  Returns,  Sparse,  Statistical,  Statisticsdescriptive,  Value,  Value Of Users rating: 0/10