Documentation ¶
Overview ¶
Package floatrange provides distributions that accept and return float64s.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Infinite ¶
type Infinite struct{}
Infinite is an immutable range that will always return math.MaxFloat64
func (Infinite) EnforceRange ¶
EnforceRange returns math.MaxFloat64
func (Infinite) Percentile ¶
Percentile returns the float behind the constant
type Range ¶
type Range interface { Poll() float64 Mult(f float64) Range EnforceRange(f float64) float64 Percentile(f float64) float64 }
Range represents a range of floating point numbers
func NewConstant ¶
NewConstant returns a range that will always poll to return f
Click to show internal directories.
Click to hide internal directories.