isFunctions function

Smooth classes checkers

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)

Arguments

  • x: The object to check.

Returns

TRUE if this is the specified class and FALSE otherwise.

TRUE if this is the specified class and FALSE otherwise.

Details

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 function
  • is.adam.sim() tests if the object was produced by sim.adam() function (not implemented yet);

Examples

ourModel <- msarima(rnorm(100,100,10)) is.smooth(ourModel) is.msarima(ourModel) ourModel <- adam(rnorm(100,100,10)) is.adam(ourModel)

Author(s)

Ivan Svetunkov, ivan@svetunkov.com

  • Maintainer: Ivan Svetunkov
  • License: LGPL-2.1
  • Last published: 2025-04-02