2014-02-20 02:49:11 +00:00
|
|
|
# Empirical Characteristic function
|
|
|
|
#
|
|
|
|
# Author: François Pelletier
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
#' Empirical Characteristic function
|
|
|
|
#'
|
|
|
|
#' Evaluate the empirical CF from a data sample
|
|
|
|
#' @param t Vector of transform variates
|
|
|
|
#' @param DATA Vector of individual data
|
|
|
|
#' @return A vector of CF values
|
2014-03-06 02:21:58 +00:00
|
|
|
#' @export empCF
|
2014-02-20 02:49:11 +00:00
|
|
|
#' @author François Pelletier
|
|
|
|
empCF <- function(t,DATA)
|
|
|
|
{
|
|
|
|
colMeans(outer(DATA,t,function(x,y) exp(1i*x*y)))
|
|
|
|
}
|