FZGPUModules 2.0
GPU-accelerated modular compression pipelines
Loading...
Searching...
No Matches
stat.h File Reference

Reconstruction quality metrics (MSE, PSNR, max error, NRMSE). More...

#include <cstddef>

Go to the source code of this file.

Classes

struct  fz::ReconstructionStats
 

Functions

template<typename T >
ReconstructionStats fz::calculateStatistics (const T *d_original, const T *d_decompressed, size_t n)
 

Detailed Description

Reconstruction quality metrics (MSE, PSNR, max error, NRMSE).

Function Documentation

◆ calculateStatistics()

template<typename T >
ReconstructionStats fz::calculateStatistics ( const T *  d_original,
const T *  d_decompressed,
size_t  n 
)

Compute reconstruction statistics between two device arrays.

Parameters
d_originalDevice pointer to original data.
d_decompressedDevice pointer to reconstructed data.
nNumber of elements.