Method and apparatus for setting a filter