Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoWeightsError error = errors.New("Encountered a decile with no weights (counts or frequencies were all 0)") NonStochasticWeights error = errors.New("weights for decile provided did not (or could not scaled to) sum to 1") ValueNotFound error = errors.New("the value provided does not appear in the calculated decile range") WarnDecilesNotDeduplicated error = errors.New("The decile pairs provided were not deduplicated - this was performed automatically and then resorted") WarnDecilesNotSorted error = errors.New("The decile pairs provided were not deduplicated - this was performed automatically") )
Functions ¶
func Quantiles ¶
func Quantiles(c CountedPairs, probs []float64) (quantiles, pointValues []float64)
Types ¶
type CountedPairs ¶
type DecilePair ¶
type Deciles ¶
type Deciles struct { Pairs []DecilePair // contains filtered or unexported fields }
func NewDeciles ¶
func NewDeciles(c CountedPairs, deduplicateDeciles bool) (Deciles, error)
func (Deciles) LookupValue ¶
func (Deciles) ScaleToOne ¶
Click to show internal directories.
Click to hide internal directories.