Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CubicSpline ¶
type CubicSpline struct {
// contains filtered or unexported fields
}
CubicSpline represents a general cubic spline
func NewCubicSpline ¶
func NewCubicSpline(x []float64, y []float64) (CubicSpline, error)
NewCubicSpline creates a new cubic spline interpolation
func NewRegularCubicSpline ¶
func NewRegularCubicSpline(x []float64, y []float64) (CubicSpline, error)
func (CubicSpline) Eval ¶
func (cs CubicSpline) Eval(x float64) float64
Eval evaluates the cubic spline at a point
func (CubicSpline) EvalAtInterval ¶
func (cs CubicSpline) EvalAtInterval(x float64, i int) float64
EvalAtInterval evaluates the cubic spline at a point in a given interval Useful when it's faster to compute the interval than Bisect, for example when the knots are evenly spaced
func (CubicSpline) GetMaxX ¶
func (cs CubicSpline) GetMaxX() float64
func (CubicSpline) GetMinMaxX ¶
func (cs CubicSpline) GetMinMaxX() (float64, float64)
func (CubicSpline) GetMinX ¶
func (cs CubicSpline) GetMinX() float64
func (CubicSpline) Interval ¶
func (cs CubicSpline) Interval(x float64) int
Click to show internal directories.
Click to hide internal directories.