harm_pow: Calculates harmonic power given a list from e/t/rfourier

Description Usage Arguments Value Examples

View source: R/pkg-misc.R

Description

Given a list with an, bn (and eventually cn and dn), returns the harmonic power.

Usage

1

Arguments

xf

A list with an, bn (and cn, dn) components, typically from a e/r/tfourier passed on coo_

Value

Returns a vector of harmonic power

Examples

1
2
3
4
5
6
7
8
9
data(bot)
ef <- efourier(bot[1], 24)
rf <- efourier(bot[1], 24)
harm_pow(ef)
harm_pow(rf)

plot(cumsum(harm_pow(ef)[-1]), type='o',
  main='Cumulated harmonic power without the first harmonic',
  ylab='Cumulated harmonic power', xlab='Harmonic rank')

Momocs documentation built on May 30, 2017, 5:23 a.m.

Search within the Momocs package
Search all R packages, documentation and source code