Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HoltWinters ¶
type HoltWinters struct {
// contains filtered or unexported fields
}
HoltWinters forecasts a series into the future. This is done using the Holt-Winters damped method.
- The initial values are calculated using a SSE.
- The series is forecast into the future using the iterative relations.
type Optimizer ¶
type Optimizer struct { // Maximum number of iterations. MaxIterations int // Reflection coefficient. Alpha, Beta, Gamma float64 // contains filtered or unexported fields }
Optimizer is an implementation of the Nelder-Mead optimization method. Based on work by Michael F. Hutt: http://www.mikehutt.com/neldermead.html
func NewOptimizer ¶
NewOptimizer returns a new instance of Optimizer with all values set to the defaults.
func (*Optimizer) Optimize ¶
func (o *Optimizer) Optimize( objfunc func(*mutable.Float64Array) float64, start *mutable.Float64Array, epsilon, scale float64, ) (float64, *mutable.Float64Array)
Optimize applies the Nelder-Mead simplex method with the Optimizer's settings. Optimize returns a new Float64Array, it is responsibility of the caller to Release it.
Click to show internal directories.
Click to hide internal directories.