The purpose of filtering is to extract the required information from a signal, ignoring ev erything else. Ho ww ell a lter p erforms this task can b e measured using a cost or loss function. Indeed w ema y de ne the goal of the lter to b e the minimisation of this loss function
https://en.wikipedia.org/wiki/Filter_(signal_processing)
Main types: