# Powerball statistics Содержание

## Statistical : object

Kind: global namespace

• :

### Statistical.μ(freq) ⇒

Calculate arithmetic mean of ball-count

Kind: static method of Returns: — Arithmatic Mean of weights

Param Type Description
freq A single ball-frequency array from

Example (Get Arithmetic Mean of Red Balls)
var f = powerball.frequencies(winners)
console.log(powerball.μ(f.red))
Example (Get Arithmetic Mean of White Balls)
console.log(powerball.mean(f.white))

### Statistical.gmean(freq) ⇒

Calculate geometric mean of ball-count

Kind: static method of Returns: — Geometric Mean of weights

Param Type Description
freq A single ball-frequency array from

Example (Get Geometric Mean of Red Balls)
var f = powerball.frequencies(winners)
console.log(powerball.gmean(f.red))
Example (Get Geometric Mean of White Balls)
console.log(powerball.gmean(f.white))

### Statistical.median(freq) ⇒

Calculate median of ball-count

Kind: static method of Returns: — Median of weights

Param Type Description
freq A single ball-frequency array from

Example (Get Median of Red Balls)
var f = powerball.frequencies(winners)
console.log(powerball.median(f.red))
Example (Get Median of White Balls)
console.log(powerball.median(f.white))

### Statistical.range(freq) ⇒

Calculate range of ball-count

Kind: static method of Returns: — High/low range of numbers for weights.

Param Type Description
freq A single ball-frequency array from

Example (Get Range of Red Balls)
var f = powerball.frequencies(winners)
console.log(powerball.range(f.red))
Example (Get Range of White Balls)
console.log(powerball.range(f.white))

### Statistical.σ(freq) ⇒

Calculate standard deviation of ball-count

Kind: static method of Returns: — Standard Deviation of weights

Param Type Description
freq A single ball-frequency array from

Example (Get Standard Deviation of Red Balls)
var f = powerball.frequencies(winners)
console.log(powerball.stddev(f.red))
Example (Get Standard Deviation of White Balls)
console.log(powerball.σ(f.white))

Оцените статью