cr.sparse.RecoveryPerformance¶
- class cr.sparse.RecoveryPerformance(Phi, y, x, x_hat=None, sol=None)[source]¶
Performance of a sparse signal recovery operation
Synthesis \(y = \Phi x + e\)
Recovery: \(y = \Phi \hat{x} + r\)
Representation error: \(h = x - \hat{x}\)
Residual: \(y - \Phi \hat{x}\)
- __init__(Phi, y, x, x_hat=None, sol=None)[source]¶
Computes all parameters related to the quality of reconstruction
Methods
__init__(Phi, y, x[, x_hat, sol])Computes all parameters related to the quality of reconstruction
print([details])Prints metrics related to reconstruction quality
Attributes
KNumber of non-zero entries in \(x\)
MSignal/Measurement space dimension, number of rows in \(\Phi\)
NRepresentation space dimension, number of atoms/columns in \(\Phi\)
R0Index set of K largest (magnitude) entries in the reconstruction \(\hat{x}\)
T0The index set of K non-zero coefficients in \(x\)
hRecovery/reconstruction error \(h = x - \hat{x}\)
h_normNorm of reconstruction error \(h\)
measurement_snrMeasurement SNR (dB) in measurement/signal space \(20 \log (\| y \|_2 / \| r \|_2)\)
num_correct_atomsNumber of entries in the overlap, i.e. number of indices of the support correctly recovered.
overlapIndices overlapping between T0 and R0 \(T_0 \cap R_0\)
perfect_support_recoveryReturns if the support has been recovered perfectly
rThe residual \(r = y - \Phi \hat{x}\)
r_normNorm of the residual
recovery_snrReconstruction/recovery SNR (dB) in representation space \(20 \log (\| x \|_2 / \| h \|_2)\)
successReturns True if more than 75% indices are correctly identified and recovery SNR is high (> 30 dB)
support_recovery_ratioReturns the ratio of correctly recovered atoms
x_drDynamic range of x
x_hat_drDynamic range of x_hat
x_hat_normnorm of the reconstruction \(\hat{x}\)
x_normnorm of representation \(x\)
y_drDynamic range of y
y_normnorm of measurement/signal \(y\)