stftcalc: calculate the fft components

Description Usage Arguments

View source: R/stftmod.R

Description

stftcalc calculating the short time fourier transform component

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
stftcalc(
  X,
  win = 10,
  inc = win/2,
  coef = Inf,
  wtype = "hanning.window",
  freq,
  centre = T,
  calc.null = F,
  pvalues = F,
  time = NULL,
  reassign = T,
  quiet = F
)

Arguments

win

Window size in number of recordings to use.

inc

increment size from one window to the next

coef

Number of fourier frequencies to compute. Small values will remove the higher frequencies from the processed object. Defaults to the maximum, win/2.

wtype

Window type for the STFT calculation.

freq

frequency of dataset. If missing and length(time) > 1, freq =(length(time) -1) /( max(time) - min(time) ) If just missing, freq = 1

centre

If TRUE (Default), centre the data in each window before processing is done. Useful for avoiding excessively large DC offset coefficients in results.

calc.null

If TRUE (Defaults to FALSE), compute a 'null' STFT by resampling the data completely, then doing a STFT.

pvalues

If TRUE (Defaults to FALSE) Compute bootstrapped pvalues for each position by resampling within each window and applying a wilcox test.

time

Allows the user to set an overriding timestamp vector to be used for processing.

reassign

logical. If TRUE, compute the time-reassigned STFT. For type %in% c("mv", "sum"), this is done with the first coordinate in mv.indices.

quiet

If TRUE, suppress output.

x

The dataset to be processed


GENEAread documentation built on Nov. 26, 2020, 1:08 a.m.