Docs for page Stats.php

Math_Stats

# Procedural File: Stats.php

Source Location: /PHPExcel/Shared/JAMA/examples/Stats.php

## Classes:

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

## Page Details:

#### Tags:

filesource: | Source Code for this file

#### 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 Sun, 27 Feb 2011 16:34:06 -0800 by phpDocumentor 1.4.3