Usa powerball results › latest

Американская лотерея powerball

Powerball : object

Kind: global namespace

  • :
    • ⇒ |

Powerball.balls() ⇒

Get ball-maxes for a given date

Kind: static method of Returns: — white, red ball-max

Param Type Default Description
Date to check

Example (Current Ball Maxes)
// returns
powerball.balls()
Example (Old Ball Maxes)
// returns
powerball.balls(new Date(‘1/8/2009’))

Powerball.numbers() ⇒

Get past winning numbers

Kind: static method of Returns: — Resolves to array of winner objectsExample (Get Current Numbers)
powerball.numbers().then(winners => {
console.log(winners)
})

Powerball.frequencies(winners) ⇒

Calculate frequencies of white & red balls

Kind: static method of Returns: — keyed with number, value is frequency

Param Type Description
winners The winning numbers from

Example (Get Frequency Counts)
console.log(powerball.frequencies(winners))

Powerball.predict(white, red, ) ⇒

Predict winning numbers

Kind: static method of Returns: — The numbers you should play

Param Type Default Description
white White ball-frequency array from
red Red ball-frequency array from
Different dates have differnt ball-sets

Example (Get Prediction)
var f = powerball.frequencies(winners)
console.log(powerball.predict(f.white, f.red))
Example (Predict For an Old Date)
console.log(powerball.predict(f.white, f.red, new Date(‘1/1/98’)))

Powerball.payout(pick, winner, powerplay) ⇒ |

Kind: static method of Returns: | — true for jackpot, if Number: amount you won

Param Type Description
pick Your number picks (6-length array)
winner A single draw from
powerplay Did you mark power-play on your ticket?

Example (Check If You Won)
powerball.numbers().then(winners => {
console.log(powerbal.payout(, winners.pop(), true))
})

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))

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