Documentation
¶
Index ¶
- Constants
- func GetOverround(odds []Odd) float64
- func GetPayout(odds []Odd) float64
- type Odd
- func (odd *Odd) Decimal() float64
- func (odd *Odd) HongKong() float64
- func (odd *Odd) Indonesian() float64
- func (o *Odd) KellyCriterion() (float64, error)
- func (odd *Odd) Malay() float64
- func (odd *Odd) Moneyline() int16
- func (odd *Odd) Precision(newPrecision uint8) Odd
- func (odd *Odd) Probability() float64
- func (odd *Odd) Valid() bool
- type Parlay
Constants ¶
View Source
const ( Unknown = -1 Decimal = 0 // check Fractional = 1 Moneyline = 2 // check Implied = 3 // check Malay = 4 Indonesian = 5 HongKong = 6 // check // Rounding float types Round = 0 Floor = 1 Ceil = 2 )
Variables ¶
This section is empty.
Functions ¶
func GetOverround ¶
Get the overround as float64 from an array of odds.
Types ¶
type Odd ¶
func (*Odd) Indonesian ¶
Returns Indonesian odds as float64 from Odd{}.
func (*Odd) KellyCriterion ¶
func (*Odd) Probability ¶
Returns the Implied Probability as float64 from Odd{}.
Click to show internal directories.
Click to hide internal directories.