phasecalc: Phase from Cosinor Estimates

View source: R/phasecalc.R

phasecalcR Documentation

Phase from Cosinor Estimates

Description

Calculate the phase given the estimated sine and cosine values from a cosinor model.

Usage

phasecalc(cosine, sine)

Arguments

cosine

estimated cosine value from a cosinor model.

sine

estimated sine value from a cosinor model.

Details

Returns the phase in radians, in the range [0,2π). The phase is the peak in the sinusoid.

Value

phaser

Estimated phase in radians.

Author(s)

Adrian Barnett a.barnett@qut.edu.au

References

Fisher, N.I. (1993) Statistical Analysis of Circular Data. Cambridge University Press, Cambridge. Page 31.

Examples


phasecalc(cosine=0, sine=1) # pi/2


season documentation built on March 21, 2022, 9:10 a.m.