Smooth classes checkers
Functions to check if an object is of the specified class
Functions to check if an object is of the specified class
is.smooth(x) is.smoothC(x) is.msarima(x) is.oes(x) is.oesg(x) is.smooth.sim(x) is.smooth.forecast(x) is.adam(x) is.adam.sim(x) is.msdecompose(x) is.msdecompose.forecast(x)
x
: The object to check.TRUE
if this is the specified class and FALSE
otherwise.
TRUE
if this is the specified class and FALSE
otherwise.
The list of functions includes:
is.smooth()
tests if the object was produced by a smooth function (e.g. es / ces / ssarima / gum / sma / msarima );
is.msarima()
tests if the object was produced by the msarima function;
is.smoothC()
tests if the object was produced by a combination function (currently applies only to smoothCombine );
is.oes()
tests if the object was produced by oes
function;
is.smooth.sim()
tests if the object was produced by simulate functions (e.g. sim.es / sim.ces / sim.ssarima
/ sim.sma / sim.gum );
is.smooth.forecast()
checks if the forecast was produced from a smooth function using forecast() function.
The list of functions includes:
is.adam()
tests if the object was produced by a adam functionis.adam.sim()
tests if the object was produced by sim.adam() function (not implemented yet);ourModel <- msarima(rnorm(100,100,10)) is.smooth(ourModel) is.msarima(ourModel) ourModel <- adam(rnorm(100,100,10)) is.adam(ourModel)
Ivan Svetunkov, ivan@svetunkov.com