Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compare.filters

Compares two filters.


Description

Compares two filters (such as those returned from filter.select). This function returns TRUE is they are the same otherwise returns FALSE.

Usage

compare.filters(f1,f2)

Arguments

f1

Filter, such as that returned by filter.select

f2

Filter, such as that returned by filter.select

Details

A very simple function. It only needs to check that the family and filter.number components of the filter are the same.

Value

If f1 and f2 are the same the function returns TRUE, otherwise it returns FALSE.

RELEASE

Version 3.9 Copyright Guy Nason 1998

Author(s)

G P Nason

See Also

Examples

#
# Create three filters!
#
filt1 <- filter.select(4, family="DaubExPhase")
filt2 <- filter.select(3, family="DaubExPhase")
filt3 <- filter.select(4, family="DaubLeAsymm")
#
# Now let us see if they are the same...
#
compare.filters(filt1, filt2)
# [1] FALSE
compare.filters(filt1, filt3)
# [1] FALSE
compare.filters(filt2, filt3)
# [1] FALSE
#
# Nope, (what a surprise) they weren't. How about
#
compare.filters(filt1, filt1)
# [1] TRUE
#
# Yes, they were the same!

wavethresh

Wavelets Statistics and Transforms

v4.6.8
GPL (>= 2)
Authors
Guy Nason [aut, cre]
Initial release
2016-10-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.