Metrics

Error

mean_squared(array)

Returns the mean squared value of an array

mean_squared_error(array1, array2)

Returns the mean square error between two arrays

root_mean_squared(array)

Returns the root mean squared value of an array

root_mse(array1, array2)

Returns the root mean square error between two arrays

normalized_root_mse(reference_arr, test_arr)

Returns the normalized root mean square error between two arrays

normalized_mse(reference_arr, test_arr)

Returns the normalized mean square error between two arrays

percent_rms_diff(reference_arr, test_arr)

Returns the percentage root mean square difference

percent_space_saving(original_bits, …)

Returns the space saving ratio as percentage

compression_ratio(original_bits, compressed_bits)

Returns the compression ratio as n x factor

prd_to_snr(prd)

Converts the PRD value to SNR value

SNR

peak_signal_noise_ratio(reference_arr, test_arr)

Returns the Peak Signal to Noise Ratio between two arrays

signal_noise_ratio(reference_arr, test_arr)

Returns the signal to noise ratio between a reference array and a test array