segreg.model.TwoBkptSegRegEstimator.get_func_for_params

TwoBkptSegRegEstimator.get_func_for_params(params)[source]

Returns the regression model function defined by the given parameters.

Parameters

params (array-like) – First six elements should be: [u1, v1, u2, v2, m1, m2, …]. Any further elements in params are ignored.

More generally, if the model is of the form:

\[y = f(x; \theta) + \varepsilon\]

where \(f(x)\) is a function of x depending on the parameter vector \(\theta\), then this returns the function

\[f(x; \theta)\]

where \(\theta\) is passed to this function as params.

See also

model_function

Returns

func_for_params

Return type

function object