Functions | |
template<typename Distance, typename V, typename S> | |
void | check_distance (const Distance &dist, const V &vec1, const V &vec2, const S &ref_val) |
template<typename V, typename S> | |
void | check_l1_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename V, typename S> | |
void | check_l2_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename V, typename S> | |
void | check_linfty_norm_and_distance (const V &vec1, const V &vec2, const S &ref_val) |
template<typename Norm, typename V> | |
void | check_norm (const Norm &norm, const V &vec1, const V &vec2) |
void test::check_distance | ( | const Distance & | dist, | |
const V & | vec1, | |||
const V & | vec2, | |||
const S & | ref_val | |||
) | [inline] |
Definition at line 51 of file common.hh.
References mln::math::abs().
Referenced by check_l1_norm_and_distance(), check_l2_norm_and_distance(), and check_linfty_norm_and_distance().
void test::check_l1_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) | [inline] |
Definition at line 36 of file l1.cc.
References check_distance(), check_norm(), mln::norm::l1(), and mln::norm::l1_distance().
void test::check_l2_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) | [inline] |
Definition at line 39 of file l2.cc.
References check_distance(), check_norm(), mln::norm::l2(), and mln::norm::l2_distance().
void test::check_linfty_norm_and_distance | ( | const V & | vec1, | |
const V & | vec2, | |||
const S & | ref_val | |||
) | [inline] |
Definition at line 37 of file linfty.cc.
References check_distance(), check_norm(), mln::norm::linfty(), and mln::norm::linfty_distance().
void test::check_norm | ( | const Norm & | norm, | |
const V & | vec1, | |||
const V & | vec2 | |||
) | [inline] |
Definition at line 44 of file common.hh.
References mln::math::abs().
Referenced by check_l1_norm_and_distance(), check_l2_norm_and_distance(), and check_linfty_norm_and_distance().