diff options
Diffstat (limited to 'tests/validation/ReferenceCPP.h')
-rw-r--r-- | tests/validation/ReferenceCPP.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/validation/ReferenceCPP.h b/tests/validation/ReferenceCPP.h index be5a733896..4173b8bc1d 100644 --- a/tests/validation/ReferenceCPP.h +++ b/tests/validation/ReferenceCPP.h @@ -42,6 +42,13 @@ namespace validation class ReferenceCPP final : public Reference { public: + /** Function to compute the mean and standard deviation of a tensor. + * + * @param[in] src Input tensor. + * @param[out] mean Mean of the tensor. + * @param[out] std_dev Standard deviation of the tensor + */ + static void mean_and_standard_deviation(const RawTensor &src, float &mean, float &std_dev); /** Function to compute the integral image of a tensor. * * @param[in] src Input tensor. |