crosscorrelation: Crosscorrelation

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

This function calculates the crosscorrelation of the frequency vector by using a sum of gaussians

Usage

1
crosscorrelation(frequencies, type = "correlation", plot = FALSE)

Arguments

frequencies

The frequences to be processed

type

character string giving the type of acf to be computed. Allowed values are "correlation" or "covariance" (correlation by default).

plot

If true the acf is plotted (true by default)

lagMax

Maximum lag at which to calculate the acf (null by default)

Value

A vector with the crosscorrelations

Author(s)

Roberto Maestre

Examples

1
2
3
4
5
## Not run: 
# simple call:
crosscorrelation(sin(c(1,2,3,4,5,4,3,2,1)), lagMax = 50, plot=T)

## End(Not run)

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