Skip to contents

Return a seasonal pattern \(F_S(t)\), a function of the form $$F_S(t) = c \left(1+\epsilon + \sin\left(\frac{2 \pi (t-\tau)}{P}\right)\right)^q$$ where \(c\) is a normalizing constant, and

  • \(\epsilon \geq 0\) or bottom

  • \(\tau\) or phase

  • \(q\) or pw

  • \(P\) or period

The algorithm sets the constant \(c\) or norm such that $$c\int_0^{P} F_S(t) dt=P$$.

Usage

# S3 method for class 'sin'
make_function(F_obj)

Arguments

F_obj

a function object

Value

a function for seasonality

See also