Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistribRange ¶
Returns a range of upper bounds, starting at low and ending at high (exactly), with factor increments, i.e. the result R has R[i] * factor = R[i+1], except for the last element, which is guaranteed to be high.
Types ¶
type Distribution ¶
type Distribution struct {
// contains filtered or unexported fields
}
func NewDistribution ¶
func NewDistribution(name string, upperBounds []float64) (*Distribution, error)
func (*Distribution) Add ¶
func (d *Distribution) Add(value float64)
func (*Distribution) Copy ¶
func (d *Distribution) Copy() *Distribution
For now, instead of providing synchronized access to all individual fields, just let clients copy the whole Distribution if they want to read it.
Click to show internal directories.
Click to hide internal directories.