getMaximalVarianceFilter: Filter Highest Variance Components of Power Spectra for...

Description Usage Arguments Value Examples

Description

This function will generate a filter for an ensemble of strings that when multiplied by the power spectra for a sample will push all components with variance (across the ensemble) below the first 'numCoeffs' to zero.

Usage

1
getMaximalVarianceFilter(scaledPowerSpectraEnsemble, numCoeffs)

Arguments

scaledPowerSpectraEnsemble

a list containing the scaled power spectra for an ensemble of strings such as that returned by the function evenlyScaleEnsemble.

numCoeffs

The number of coefficients that the user wishes to use for the distance calculation, this pushes all others to zero.

Value

a vector of the same length as the input scaled signal length which contains ones in the positions where coefficients have a high across ensemble variance, and zero for those below the desired number of ooefficients.

Examples

1
2
3
4
en <- encodeGenomes(sarscvmay[1:5,]); 
ps <- getPowerSpectraEnsemble(en); 
sps <- evenlyScaleEnsemble(ps); 
fil <- getMaximalVarianceFilter(sps,100); 

mathornton01/Genomic-DFT-Yin-R documentation built on Dec. 21, 2021, 2:52 p.m.