QuadSpline

scalation.modeling.forecasting.QuadSpline
See theQuadSpline companion class
object QuadSpline

The QuadSpline companion object provides factory methods for the QuadSpline class.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
QuadSpline.type

Members list

Value members

Concrete methods

def apply(y: VectorD, tt: VectorD, hparam: HyperParameter): QuadSpline

Create a QuadSpline object that predicts using a quadratic curve that fits the last three point.

Create a QuadSpline object that predicts using a quadratic curve that fits the last three point.

Value parameters

hparam

the hyper-parameters (none => use null)

tt

the time vector, if relevant (time index may suffice)

y

the response vector (time-series data)

Attributes

def splineFit(t: Double, y_2: Double, y_1: Double, y_0: Double): (Double, Double, Double)

Based on time t and three points y_t-2, y_t-1, y_t, determine values for the coefficients a, b and c.

Based on time t and three points y_t-2, y_t-1, y_t, determine values for the coefficients a, b and c.

Value parameters

t

the time point

y_0

the current response value

y_1

the response value 1 time units in the past

y_2

the response value 2 time units in the past

Attributes