Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NaturalCubicSplines ¶
type NaturalCubicSplines struct {
// contains filtered or unexported fields
}
NaturalCubicSplines Reference from: p.141-156, T. Hastie et. al., The Elements of Statistical Learning
func NewNaturalCubicSplines ¶
func NewNaturalCubicSplines(knots knot.Knot, coefs []float64) *NaturalCubicSplines
NewNaturalCubicSplines A new pointer of NaturalCubicSpline struct
func (*NaturalCubicSplines) At ¶
func (ncs *NaturalCubicSplines) At(x float64) float64
At Calculate the smoothing spline at x
func (*NaturalCubicSplines) Interpolate ¶
func (ncs *NaturalCubicSplines) Interpolate(y []float64)
Interpolate Calculate the coefficients interpolating y
func (*NaturalCubicSplines) Solve ¶
func (ncs *NaturalCubicSplines) Solve(lambda float64)
Solve Solve the matrix needed when calculating smoothing spline.
Click to show internal directories.
Click to hide internal directories.