Documentation
¶
Overview ¶
Package numeric contains stream processing functions that * can be called on numeric data types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Correlation ¶
type Correlation struct {
// contains filtered or unexported fields
}
func NewCorrelation ¶
func NewCorrelation() *Correlation
func (*Correlation) Add ¶
func (m *Correlation) Add(x, y float64)
func (*Correlation) Remove ¶
func (m *Correlation) Remove(x, y float64)
func (*Correlation) Reset ¶
func (m *Correlation) Reset()
func (*Correlation) Result ¶
func (m *Correlation) Result() (float64, error)
type Covariance ¶
type Covariance struct {
// contains filtered or unexported fields
}
func NewCovariance ¶
func NewCovariance() *Covariance
func (*Covariance) Add ¶
func (m *Covariance) Add(x, y float64)
func (*Covariance) Remove ¶
func (m *Covariance) Remove(x, y float64)
func (*Covariance) Reset ¶
func (m *Covariance) Reset()
func (*Covariance) Result ¶
func (m *Covariance) Result() (float64, error)
type IStream ¶
type IStream interface { // Add adds a value to the algorithm. Add(v float64) // Remove removes the value from the algorithm. Remove(v float64) // Result produces result of the algorithm and error. Result() (float64, error) // Reset clears the stream algorithm's inner state. Reset() }
IStream defines a streaming data processing math algorithm's interface.
type Variance ¶
type Variance struct {
// contains filtered or unexported fields
}
Calculates ** Population Variance **
func NewVariance ¶
func NewVariance() *Variance
Click to show internal directories.
Click to hide internal directories.