calculateSpectrum: Calculate the spectrum from a given vector

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Calculate frequency, amplitude and phase from a given vector using the Fast Fourier Tramsform algorithm.

Usage

1

Arguments

time

Armadillo vector representing the meassurements time

x

Armadillo vector with numeric elements

Value

A complex vector with the calculated spectrum

Author(s)

Roberto Maestre

Examples

1
2
3
4
5
6
## Not run: 
# simple call:
sample <- sin(seq(1:100))
calculateSpectrum(seq(1:length(sample)),sample)

## End(Not run)

rmaestre/variableStars documentation built on April 11, 2020, 11:10 p.m.