Similarity
Appearance
(Redirected from Similar (mathematics))
Look up similarity in Wiktionary, the free dictionary.
Similarity may refer to:
In mathematics and computing
[edit]- Similarity (geometry), the property of sharing the same shape
- Matrix similarity, a relation between matrices
- Similarity measure, a function that quantifies the similarity of two objects
- Cosine similarity, which uses the angle between vectors
- String metric, also called string similarity
- Semantic similarity, in computational linguistics
In linguistics
[edit]In signal processing
[edit]Similarity between two different signals is also important in the field of signal processing. Below are some common methods for calculating similarity.
For instance, let's consider two signals represented as and , where and .
Maximum error (ME)
[edit]- Measuring the maximum magnitude of the difference between two signals. Maximum error is useful for assessing the worst-case scenario of prediction accuracy
Mean squared error (MSE)
[edit]- Measuring the average squared difference between two signals. Unlike the maximum error, mean squared error takes into account the overall magnitude and spread of errors, offering a comprehensive assessment of the difference between the two signals.
Normalized mean square error (NMSE)
[edit]- NMSE is an extension of MSE. It is calculated by normalizing the MSE with the signal power, enabling fair comparisons across different datasets and scales.
Root-mean-square deviation (RMSE)
[edit]- RMSE is derived from MSE by taking the square root of the MSE. It downscale the MSE, providing a more interpretable and comparable measure for better understanding for outcome.
Normalized root-mean-square error (NRMSE)
[edit]- An extension of RMSE, which allows for signal comparisons between different datasets and models with varying scales.
Signal-to-noise ratio (SNR)
[edit]- In signal processing, SNR is calculated as the ratio of signal power to noise power, typically expressed in decibels.
- A high SNR indicates a clear signal, while a low SNR suggests that the signal is corrupted by noise. In this context, the signal MSE can be considered as noise, and the similarity between two signals can be viewed as the equation below:
Peak signal-to-noise ratio (PSNR)
[edit]- A metric used to measure the maximum power of a signal to the noise. It is commonly used in image signals because the pixel intensity in an image does not directly represent the actual signal value. Instead, the pixel intensity corresponds to color values, such as white being represented as 255 and black as 0
- Gray scale image:
- Color image:
-Norm
[edit]- A mathematical concept used to measure the distance between two vectors. In signal processing, the L-norm is employed to quantify the difference between two signals. The L1-norm corresponds to the Manhattan distance, while the L2-norm corresponds to the Euclidean distance .
Structural similarity (SSIM)
[edit]- SSIM is a similarity metric specifically designed for measuring the similarity between two image signals. Unlike other similarity measures, SSIM leverages the strong interdependencies between neighboring pixels, providing a measure that closely aligns with human visual perception and feeling of similarity.
- with:
- the pixel sample mean of ;
- the pixel sample mean of ;
- the variance of ;
- the variance of ;
- the covariance of and ;
- , two variables to stabilize the division with weak denominator;
- the dynamic range of the pixel-values (typically this is );
- and by default.
In other fields
[edit]- Similitude (model), in engineering, describing the geometric, kinematic and dynamic 'likeness' of two or more systems
- Similarity (psychology)
- Similarity (philosophy)
- Musical similarity
- Chemical similarity
- Similarity (network science)
- Structural similarity
- Similar (film), an upcoming South Korean film