pwlfPredict#
- swordfish.function.pwlfPredict()#
Evaluate the fitted continuous piecewise linear function at untested points.
- Parameters:
model (Constant) – A dictionary returned by piecewiseLinFit.
X (Constant) – A numeric vector indicating the x locations to predict the output of the fitted continuous piecewise linear function. Null value is not allowed.
beta (Constant, optional) – A numeric vector indicating the model parameters for the continuous piecewise linear fit. Null value is not allowed.
breaks (Constant, optional) – A numeric vector indicating the x locations where each line segment terminates. These are referred to as breakpoints for each line segment. Null value is not allowed.
- Returns:
A floating-point vector.
- Return type: