phasecalc function

Phase from Cosinor Estimates

Phase from Cosinor Estimates

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

phasecalc(cosine, sine)

Arguments

  • cosine: estimated cosine value from a cosinor model.
  • sine: estimated sine value from a cosinor model.

Returns

  • phaser: Estimated phase in radians.

Details

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

Examples

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

References

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

Author(s)

Adrian Barnett a.barnett@qut.edu.au

  • Maintainer: Adrian Barnett
  • License: GPL (>= 3)
  • Last published: 2022-03-21

Useful links