Main MRPT website > C++ reference for MRPT 1.5.6
Functions | Variables
robust_kernels_unittest.cpp File Reference
#include <mrpt/math/robust_kernels.h>
#include <gtest/gtest.h>
Include dependency graph for robust_kernels_unittest.cpp:

Go to the source code of this file.

Functions

template<TRobustKernelType KERNEL_TYPE>
void tester_robust_kernel (const double table[][5], const size_t N)
 
 TEST (RobustKernels, PlainLeastSquares)
 
 TEST (RobustKernels, PseudoHuber)
 

Variables

const double list_test_kernel_none [][5]
 
const double list_test_kernel_pshb [][5]
 

Function Documentation

TEST ( RobustKernels  ,
PlainLeastSquares   
)

Definition at line 64 of file robust_kernels_unittest.cpp.

References list_test_kernel_none.

TEST ( RobustKernels  ,
PseudoHuber   
)

Definition at line 70 of file robust_kernels_unittest.cpp.

References list_test_kernel_pshb.

template<TRobustKernelType KERNEL_TYPE>
void tester_robust_kernel ( const double  table[][5],
const size_t  N 
)

Definition at line 41 of file robust_kernels_unittest.cpp.

Variable Documentation

const double list_test_kernel_none[][5]
Initial value:
= {
{ 0.0 , .0 , 0.0 , 1.0 , 0.0 },
{ 1.0 , .0 , 1.0 , 1.0 , 0.0 },
{ 10.0 , .0 , 10.0 , 1.0 , 0.0 }
}

Definition at line 21 of file robust_kernels_unittest.cpp.

Referenced by TEST().

const double list_test_kernel_pshb[][5]
Initial value:
= {
{ 0.0 , 1.0 , 0.0 , 1.0 ,-0.5 },
{ 0.0 , 4.0 , 0.0 , 1.0 ,-0.125 },
{ 0.0 , 9.0 , 0.0 , 1.0 ,-0.0555556 },
{ 1.0 , 1.0 , 0.828427 , 0.707107 ,-0.176777 },
{ 1.0 , 4.0 , 0.944272 , 0.894427 ,-0.0894427 },
{ 1.0 , 9.0 , 0.973666 , 0.948683 ,-0.0474342 },
{ 4.0 , 1.0 , 2.47214 , 0.447214 ,-0.0447214 },
{ 4.0 , 4.0 , 3.31371 , 0.707107 ,-0.0441942 },
{ 4.0 , 9.0 , 3.63331 , 0.83205 ,-0.0320019 }
}

Definition at line 28 of file robust_kernels_unittest.cpp.

Referenced by TEST().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018