Okay, "average," "median," and "quartiles" (often used in outlier detection or robust statistics) are good examples, mostly falling under statistical or order-statistic filters, often used for smoothing or data summarization.
The term "filter" is very broad and its meaning depends heavily on the context (signal processing, image processing, data analysis, machine learning, etc.). Here are various other types of filtering, categorized for clarity:
-
Spatial Domain Filters (Common in Image Processing):
- Gaussian Filter: A linear filter that blurs an image using a Gaussian kernel. It's very effective for removing Gaussian noise.
- Bilateral Filter: A non-linear, edge-preserving, and noise-reducing smoothing filter. It averages pixels based on their spatial closeness and radiometric (intensity) similarity.
- Anisotropic Diffusion: An advanced edge-preserving smoothing technique that encourages smoothing within regions while inhibiting it across strong edges.
- Edge Detection Filters:
- Sobel, Prewitt, Roberts Cross: Use small kernels to detect edges by approximating the gradient.
- Laplacian Filter: A second-order derivative filter used for edge detection (highlights regions of rapid intensity change).
- Canny Edge Detector: A multi-stage algorithm to detect a wide range of edges.
- Morphological Filters (Shape-based):
- Erosion: Erodes away the boundaries of foreground objects.
- Dilation: Expands the boundaries of foreground objects.
- Opening: Erosion followed by dilation (removes small objects/noise).
- Closing: Dilation followed by erosion (fills small holes in objects).
- Min/Max Filters: Order-statistic filters where the output is the minimum or maximum value in a neighborhood (related to erosion/dilation for binary images).
-
Frequency Domain Filters (Common in Signal and Image Processing):
These involve transforming the data (e.g., using Fourier Transform) into the frequency domain, modifying frequencies, and then transforming back.
- Low-Pass Filter: Attenuates high frequencies, allowing low frequencies to pass. Results in smoothing. (e.g., ideal low-pass, Butterworth low-pass, Gaussian low-pass).
- High-Pass Filter: Attenuates low frequencies, allowing high frequencies to pass. Results in sharpening and edge enhancement.
- Band-Pass Filter: Allows a specific range (band) of frequencies to pass while attenuating frequencies outside this band.
- Band-Stop (Notch) Filter: Attenuates a specific range (band) of frequencies while allowing others to pass (e.g., removing 60Hz hum).
- Wiener Filter: An optimal filter (in the mean square error sense) for noise reduction when the signal and noise characteristics (power spectra) are known or can be estimated.
-
Time Series / Sequential Data Filters:
- Moving Average (Simple, Weighted, Exponential - EMA): You mentioned average, but these are specific implementations for time series to smooth out short-term fluctuations and highlight longer-term trends. EMA gives more weight to recent data.
- Kalman Filter: An optimal recursive data processing algorithm that estimates the state of a dynamic system from a series of noisy measurements. It's predictive and corrective.
- Savitzky-Golay Filter: Fits a polynomial to a set of data points in a moving window to smooth the data while preserving features like peak width and height better than a simple moving average.
-
Adaptive Filters:
- Filters whose coefficients or parameters adjust automatically to changes in the input signal's characteristics or a desired response.
- Examples: LMS (Least Mean Squares) filter, RLS (Recursive Least Squares) filter. Often used in noise cancellation, echo cancellation, and channel equalization.
-
Rule-Based / Conditional Filters (Common in Data Analysis / Databases):
- Thresholding: Classifying data points based on whether they are above or below a certain value (e.g., image binarization).
- Query-based Filters: Selecting data based on specific criteria (e.g., "show all customers from California with purchases > $100").
- Outlier Rejection Filters:
- Z-score based: Removing data points that are a certain number of standard deviations away from the mean.
- IQR-based: Removing data points outside Q1 - 1.5IQR and Q3 + 1.5IQR (related to quartiles).
- Top-N / Bottom-N Filters: Selecting the highest or lowest N values based on a certain attribute.
-
Probabilistic Filters:
- Bloom Filter: A space-efficient probabilistic data structure used to test whether an element is a member of a set. It can have false positives but no false negatives.
- Particle Filter (Sequential Monte Carlo): Used for estimating the state of dynamic systems, particularly non-linear and non-Gaussian ones.
-
Machine Learning Based Filters:
- Spam Filters: Use techniques like Naive Bayes, Support Vector Machines, or neural networks to classify emails as spam or not-spam.
- Recommendation Systems (e.g., Collaborative Filtering, Content-Based Filtering): Filter items to recommend relevant ones to users.
- Feature Selection Algorithms: While not "filters" in the signal processing sense, they filter out irrelevant or redundant features from a dataset before model training.
The choice of filter depends entirely on the nature of the data and the goal of the filtering process (e.g., noise reduction, feature extraction, data selection, smoothing, sharpening).