Get fitted values from a 'trendfilter' object.

# S3 method for trendfilter
fitted(obj, lambda = NULL, ...)

Arguments

obj

Object of class trendfilter.

lambda

One or more lambda values to compute fitted values for. Defaults to lambda = NULL, in which case, fitted values are computed for all hyperparameter values in obj$lambda.

...

Additional named arguments. Currently unused.

zero_tol

Threshold parameter that controls the point at which a small coefficient value is set to zero. Defaults to zero_tol = 1e-10.