pharmonic: Harmonic analysis test: p-value calculation

Description Usage Arguments Value References See Also Examples

Description

This function calculates the p-value for the harmonic analysis test developed by R.A. Fisher (1929). Harmonic analysis specifically refers to Fast Fourier Transform (FFT) results.

Usage

1
pharmonic(n, r, g)

Arguments

n

the total number of frequencies in FFT results

r

the modulus of the tested frequency is ranked as the rth largest among all frequencies

g

the FFT result of the tested frequency expressed as the squared modulus divided by the sum of the squared moduli by all frequencies (proportion: m_r^2/(m_1^2+...+m_n^2)).

Value

The p-value calculated by the harmonic test.

References

Fisher, R. A. (1929). Tests of significance in harmonic analysis. Proceedings of the Royal Society of London. Series A, 125(796), 54-59.

See Also

gharmonic

Examples

1
pharmonic(n=100,r=2,g=0.1)

xinyue-L/PML documentation built on May 13, 2020, 8:36 a.m.