FZGPUModules 1.0
GPU-accelerated modular compression pipeline
Loading...
Searching...
No Matches
stat.h
Go to the documentation of this file.
1#pragma once
2
8#include <cstddef>
9
10namespace fz {
11
14 double mse = 0.0;
15 double psnr = 0.0;
16 double max_error = 0.0;
17 size_t max_error_index = 0;
18 double nrmse = 0.0;
19 double value_range = 0.0;
20};
21
29template<typename T>
30ReconstructionStats calculateStatistics(const T* d_original, const T* d_decompressed, size_t n);
31
32} // namespace fz
Definition fzm_format.h:25
ReconstructionStats calculateStatistics(const T *d_original, const T *d_decompressed, size_t n)
Definition stat.h:13
double nrmse
Normalized RMSE (RMSE / value_range).
Definition stat.h:18
double max_error
Maximum absolute element-wise error.
Definition stat.h:16
size_t max_error_index
Index of the element with maximum error.
Definition stat.h:17
double value_range
max(data) − min(data) of the original.
Definition stat.h:19
double mse
Mean squared error.
Definition stat.h:14
double psnr
Peak signal-to-noise ratio (dB).
Definition stat.h:15