Documentation ¶
Overview ¶
gp is a library for computing Gaussian processes in Go/Golang. Algorithm adapted from: http://www.gaussianprocess.org/gpml/chapters/RW2.pdf
Index ¶
- Variables
- type Cov
- type GP
- func (gp *GP) Add(x []float64, y float64)
- func (gp GP) Dims() int
- func (gp *GP) Estimate(x []float64) (float64, float64, error)
- func (gp *GP) Gradient(x []float64) ([]float64, error)
- func (gp *GP) Maximum() (x []float64, y float64)
- func (gp *GP) Minimum() (x []float64, y float64)
- func (gp GP) Name(i int) string
- func (gp GP) OutputName() string
- func (gp GP) RawData() ([][]float64, []float64)
- func (gp *GP) SetNames(inputs []string, output string)
- type MaternCov
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFactorizeFailed = errors.New("failed to factorize")
Functions ¶
This section is empty.
Types ¶
type GP ¶
type GP struct {
// contains filtered or unexported fields
}
GP represents a gaussian process.
func New ¶
New creates a new Gaussian process with the specified covariance function (cov) and noise level (variance).
func (GP) OutputName ¶
type MaternCov ¶
type MaternCov struct{}
MaternCov calculates the covariance between a and b. nu = 2.5 https://en.wikipedia.org/wiki/Mat%C3%A9rn_covariance_function#Simplification_for_.CE.BD_half_integer
Click to show internal directories.
Click to hide internal directories.