Description Usage Arguments Value Examples

The Butterworth filter is a type of signal processing filter designed to have as flat a frequency response as possible in the passband.

1 | ```
butterFilter(ratios, N = ceiling(length(ratios)/200))
``` |

`ratios` |
A vector of numeric. It is log2-transformed ratios, CPMRatios or OddRatios in each window. |

`N` |
numeric(1) or integer(1). Critical frequencies of the low pass filter will be set as 1/N. 1/N is a cutoff at 1/N-th of the Nyquist frequency. By default, it is suppose there are about 200 peaks in the inputs. |

A vector of numeric with same length of input ratios. The vector indicates smoothed ratios.

1 2 | ```
ratios <- runif(20000)
butterFilter(ratios)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.