| signal_statistics | R Documentation |
Functions to compute various signal statistics.
absolute_gini_coefficient(x)
sample_absolute_gini_coefficient(x)
hoyer_sparsity(x)
oracle_snr(signal, noisy_signal)
oracle_snr_db(signal, noisy_signal)
m2m4_snr_estimator(noisy_signal, signal_kurtosis = 1, noise_kurtosis = 3)
m2m4_snr_estimator_db(noisy_signal, signal_kurtosis = 1, noise_kurtosis = 3)
x |
A numeric vector. |
signal |
A numeric vector. |
noisy_signal |
A numeric vector. |
signal_kurtosis |
A single numeric value. |
noise_kurtosis |
A single numeric value. |
A numeric value or vector with the computed statistic.
Boost Documentation for more details on the mathematical background.
# Absolute Gini Coefficient
absolute_gini_coefficient(c(1, 2, 3, 4, 5))
# Sample Absolute Gini Coefficient
sample_absolute_gini_coefficient(c(1, 2, 3, 4, 5))
# Hoyer Sparsity
hoyer_sparsity(c(1, 0, 0, 2, 3))
signal <- c(1, 2, 3)
noisy_signal <- c(1.1, 2.1, 3.1)
# Oracle SNR
oracle_snr(signal, noisy_signal)
# Oracle SNR in dB
oracle_snr_db(signal, noisy_signal)
# M2M4 SNR Estimator
m2m4_snr_estimator(noisy_signal, 3, 2)
# M2M4 SNR Estimator in dB
m2m4_snr_estimator_db(noisy_signal, 3, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.