Main MRPT website > C++ reference for MRPT 1.5.9
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() [1/2]

TEST ( RobustKernels  ,
PlainLeastSquares   
)

Definition at line 64 of file robust_kernels_unittest.cpp.

References list_test_kernel_none.

◆ TEST() [2/2]

TEST ( RobustKernels  ,
PseudoHuber   
)

Definition at line 70 of file robust_kernels_unittest.cpp.

References list_test_kernel_pshb.

◆ tester_robust_kernel()

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

◆ list_test_kernel_none

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().

◆ list_test_kernel_pshb

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.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020