Math_Stats
[ class tree: Math_Stats ] [ index: Math_Stats ] [ all elements ]

File: Stats.php

Source Location: /Math_Stats-0.9.1/Math/Stats.php

Classes:

Math_Stats
A class to calculate descriptive statistics from a data set.

Page Details:

Includes:

include_once('PEAR.php') [line 22]

STATS_BASIC [line 32]

STATS_BASIC = 1
STATS_BASIC to generate the basic descriptive statistics

[ Top ]



STATS_DATA_CUMMULATIVE [line 51]

STATS_DATA_CUMMULATIVE = 1
STATS_DATA_CUMMULATIVE for an associative array of frequency values,

where in each array entry, the index is the data point and the value the count (frequency): e.g. $data = array(3=>4, 2.3=>5, 1.25=>6, 0.5=>3)


[ Top ]



STATS_DATA_SIMPLE [line 44]

STATS_DATA_SIMPLE = 0
STATS_DATA_SIMPLE for an array of numeric values. This is the default.

e.g. $data = array(2,3,4,5,1,1,6);


[ Top ]



STATS_FULL [line 36]

STATS_FULL = 2
STATS_FULL to generate also higher moments, mode, median, etc.

[ Top ]



STATS_IGNORE_NULL [line 64]

STATS_IGNORE_NULL = -2
STATS_IGNORE_NULL, ignore null values and prune them from the data.

Any non-numeric value is considered a null in this context.


[ Top ]



STATS_REJECT_NULL [line 59]

STATS_REJECT_NULL = -1
STATS_REJECT_NULL, reject data sets with null values. This is the default.

Any non-numeric value is considered a null in this context.


[ Top ]



STATS_USE_NULL_AS_ZERO [line 69]

STATS_USE_NULL_AS_ZERO = -3
STATS_USE_NULL_AS_ZERO, assign the value of 0 (zero) to null values.

Any non-numeric value is considered a null in this context.


[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:39:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.