Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CentralTendencySampler ¶
type CentralTendencySampler interface {
CentralTendency() float64
}
type PairedData ¶
PairedData is paired data x and y values
func (PairedData) Compose ¶
func (f PairedData) Compose(g PairedData) PairedData
func (*PairedData) ForceMonotonicInRange ¶
func (p *PairedData) ForceMonotonicInRange(min float64, max float64)
func (PairedData) IsMonotonicallyIncreasing ¶
func (p PairedData) IsMonotonicallyIncreasing() bool
func (PairedData) SampleValue ¶
func (p PairedData) SampleValue(inputValue interface{}) float64
SampleValue implements ValueSampler
func (PairedData) SampleYValue ¶
func (p PairedData) SampleYValue(yval float64) float64
SampleYValue
type UncertaintyPairedData ¶
type UncertaintyPairedData struct { Xvals []float64 `json:"xvalues"` Yvals []statistics.ContinuousDistribution `json:"ydistributions"` }
UncertaintyPairedData is paired data where Y is a distribution
func (UncertaintyPairedData) CentralTendency ¶
func (p UncertaintyPairedData) CentralTendency() ValueSampler
func (UncertaintyPairedData) MarshalJSON ¶
func (upd UncertaintyPairedData) MarshalJSON() ([]byte, error)
func (UncertaintyPairedData) SampleValueSampler ¶
func (up UncertaintyPairedData) SampleValueSampler(randomValue float64) ValueSampler
SampleValueSampler implements UncertaintyValueSamplerSampler interface on the UncertaintyPairedData struct to produce a deterministic paireddata value for a given random number between 0 and 1
func (*UncertaintyPairedData) UnmarshalJSON ¶
func (upd *UncertaintyPairedData) UnmarshalJSON(b []byte) error
type UncertaintyValueSamplerSampler ¶
type UncertaintyValueSamplerSampler interface { SampleValueSampler(randomValue float64) ValueSampler CentralTendency() ValueSampler }
UncertaintyValueSamplerSampler provides an input random number and produces a value sampler (such as a paired data)
type ValueSampler ¶
type ValueSampler interface {
SampleValue(inputValue interface{}) float64
}
ValueSampler is an interface that enforces SampleValue which returns a float64 this is intended to represent any parameter in a struct if it can be deterministic or stochastic.