MRPT  1.9.9
Functions | Variables
robust_kernels_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/math/robust_kernels.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 62 of file robust_kernels_unittest.cpp.

References list_test_kernel_none.

◆ TEST() [2/2]

TEST ( RobustKernels  ,
PseudoHuber   
)

Definition at line 69 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 39 of file robust_kernels_unittest.cpp.

References EXPECT_NEAR().

Here is the call graph for this function:

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 22 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 27 of file robust_kernels_unittest.cpp.

Referenced by TEST().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020