Description Usage Arguments Value Examples
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.
1 | getMaximalVarianceFilter(scaledPowerSpectraEnsemble, numCoeffs)
|
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. |
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.
1 2 3 4 | en <- encodeGenomes(sarscvmay[1:5,]);
ps <- getPowerSpectraEnsemble(en);
sps <- evenlyScaleEnsemble(ps);
fil <- getMaximalVarianceFilter(sps,100);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.