MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Definition at line 45 of file StdDevTemplateTest.cpp.
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_calc | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_accum | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_save | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_update | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_temp | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_calc_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_accum_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_save_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_update_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_temp_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_calc | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_save | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_update | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_temp | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_calc_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_save_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_update_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_temp_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_calc | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_save | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_update | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_temp | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_calc_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_save_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_update_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_temp_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_hessian_fails | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_hessian_fails_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_failed_metric_in_eval | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_failed_metric_in_grad | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_false_metric_in_eval | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_false_metric_in_grad | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_evaluate | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_evaluate_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_numerical_gradient | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_numerical_gradient_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diagonal_gradient | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diagonal_gradient_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_hessian_diag | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_hessian_diag_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_clone | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_clone_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_negate | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_eval_negate_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_negate | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_grad_negate_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_negate | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST | ( | test_diag_negate_sqr | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST_SUITE | ( | StdDevTemplateTest | ) | [private] |
StdDevTemplateTest::CPPUNIT_TEST_SUITE_END | ( | ) | [private] |
void StdDevTemplateTest::test_clone | ( | ) | [inline] |
Definition at line 357 of file StdDevTemplateTest.cpp.
References ObjectiveFunctionTests::test_clone().
{ StdDevTemplate of( NULL ); ObjectiveFunctionTests::test_clone( &of ); }
void StdDevTemplateTest::test_clone_sqr | ( | ) | [inline] |
Definition at line 362 of file StdDevTemplateTest.cpp.
References ObjectiveFunctionTests::test_clone().
{ VarianceTemplate of( NULL ); ObjectiveFunctionTests::test_clone( &of ); }
void StdDevTemplateTest::test_diag_accum | ( | ) | [inline] |
Definition at line 229 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_accum_sqr | ( | ) | [inline] |
Definition at line 255 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_calc | ( | ) | [inline] |
Definition at line 224 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_calc_sqr | ( | ) | [inline] |
Definition at line 250 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_negate | ( | ) | [inline] |
Definition at line 388 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_negate_flag( DIAG, &of ); }
void StdDevTemplateTest::test_diag_negate_sqr | ( | ) | [inline] |
Definition at line 393 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_negate_flag( DIAG, &of ); }
void StdDevTemplateTest::test_diag_save | ( | ) | [inline] |
Definition at line 234 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_save_sqr | ( | ) | [inline] |
Definition at line 260 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_temp | ( | ) | [inline] |
Definition at line 244 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, DIAG, &of ); }
void StdDevTemplateTest::test_diag_temp_sqr | ( | ) | [inline] |
Definition at line 270 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, DIAG, &of ); }
void StdDevTemplateTest::test_diag_update | ( | ) | [inline] |
Definition at line 239 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, DIAG, &of ); }
void StdDevTemplateTest::test_diag_update_sqr | ( | ) | [inline] |
Definition at line 265 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, DIAG, &of ); }
void StdDevTemplateTest::test_diagonal_gradient | ( | ) | [inline] |
Definition at line 290 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); compare_diagonal_gradient( &of ); }
void StdDevTemplateTest::test_diagonal_gradient_sqr | ( | ) | [inline] |
Definition at line 295 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); compare_diagonal_gradient( &of ); }
void StdDevTemplateTest::test_eval_accum | ( | ) | [inline] |
Definition at line 125 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_accum_sqr | ( | ) | [inline] |
Definition at line 151 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_calc | ( | ) | [inline] |
Definition at line 120 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_calc_sqr | ( | ) | [inline] |
Definition at line 146 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_negate | ( | ) | [inline] |
Definition at line 368 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_negate_flag( EVAL, &of ); }
void StdDevTemplateTest::test_eval_negate_sqr | ( | ) | [inline] |
Definition at line 373 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_negate_flag( EVAL, &of ); }
void StdDevTemplateTest::test_eval_save | ( | ) | [inline] |
Definition at line 130 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_save_sqr | ( | ) | [inline] |
Definition at line 156 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_temp | ( | ) | [inline] |
Definition at line 140 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, EVAL, &of ); }
void StdDevTemplateTest::test_eval_temp_sqr | ( | ) | [inline] |
Definition at line 166 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, EVAL, &of ); }
void StdDevTemplateTest::test_eval_update | ( | ) | [inline] |
Definition at line 135 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, EVAL, &of ); }
void StdDevTemplateTest::test_eval_update_sqr | ( | ) | [inline] |
Definition at line 161 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, EVAL, &of ); }
void StdDevTemplateTest::test_evaluate | ( | ) |
Definition at line 415 of file StdDevTemplateTest.cpp.
References std_dev_sqr(), and test_value().
{ StdDevTemplate OF( NULL ); const double list1[] = { 1.0, 0.0, -5.0, 0.2, 6.0, 3 }; const unsigned len1 = sizeof( list1 ) / sizeof( list1[0] ); test_value( list1, len1, sqrt( std_dev_sqr( list1, len1 ) ), EVAL, &OF ); const double list2[] = { 20, -30, 40, -50, 60, -70, 80, -90 }; const unsigned len2 = sizeof( list2 ) / sizeof( list2[0] ); test_value( list2, len2, sqrt( std_dev_sqr( list2, len2 ) ), EVAL, &OF ); }
Definition at line 428 of file StdDevTemplateTest.cpp.
References std_dev_sqr(), and test_value().
{ VarianceTemplate OF( NULL ); const double list1[] = { 1.0, 0.0, -5.0, 0.2, 6.0, 3 }; const unsigned len1 = sizeof( list1 ) / sizeof( list1[0] ); test_value( list1, len1, std_dev_sqr( list1, len1 ), EVAL, &OF ); const double list2[] = { 20, -30, 40, -50, 60, -70, 80, -90 }; const unsigned len2 = sizeof( list2 ) / sizeof( list2[0] ); test_value( list2, len2, std_dev_sqr( list2, len2 ), EVAL, &OF ); }
void StdDevTemplateTest::test_failed_metric_in_eval | ( | ) | [inline] |
Definition at line 315 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_handles_qm_error( EVAL, &of ); }
void StdDevTemplateTest::test_failed_metric_in_eval_sqr | ( | ) | [inline] |
Definition at line 325 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_handles_qm_error( EVAL, &of ); }
void StdDevTemplateTest::test_failed_metric_in_grad | ( | ) | [inline] |
Definition at line 320 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_handles_qm_error( GRAD, &of ); }
void StdDevTemplateTest::test_failed_metric_in_grad_sqr | ( | ) | [inline] |
Definition at line 330 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_handles_qm_error( GRAD, &of ); }
void StdDevTemplateTest::test_false_metric_in_eval | ( | ) | [inline] |
Definition at line 336 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_handles_invalid_qm( EVAL, &of ); }
void StdDevTemplateTest::test_false_metric_in_eval_sqr | ( | ) | [inline] |
Definition at line 346 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_handles_invalid_qm( EVAL, &of ); }
void StdDevTemplateTest::test_false_metric_in_grad | ( | ) | [inline] |
Definition at line 341 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_handles_invalid_qm( GRAD, &of ); }
void StdDevTemplateTest::test_false_metric_in_grad_sqr | ( | ) | [inline] |
Definition at line 351 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_handles_invalid_qm( GRAD, &of ); }
void StdDevTemplateTest::test_grad_accum | ( | ) | [inline] |
Definition at line 177 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_accum_sqr | ( | ) | [inline] |
Definition at line 203 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::ACCUMULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::ACCUMULATE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_calc | ( | ) | [inline] |
Definition at line 172 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_calc_sqr | ( | ) | [inline] |
Definition at line 198 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::CALCULATE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_negate | ( | ) | [inline] |
Definition at line 378 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); test_negate_flag( GRAD, &of ); }
void StdDevTemplateTest::test_grad_negate_sqr | ( | ) | [inline] |
Definition at line 383 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); test_negate_flag( GRAD, &of ); }
void StdDevTemplateTest::test_grad_save | ( | ) | [inline] |
Definition at line 182 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_save_sqr | ( | ) | [inline] |
Definition at line 208 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::SAVE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::SAVE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_temp | ( | ) | [inline] |
Definition at line 192 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, GRAD, &of ); }
void StdDevTemplateTest::test_grad_temp_sqr | ( | ) | [inline] |
Definition at line 218 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::TEMPORARY.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::TEMPORARY, GRAD, &of ); }
void StdDevTemplateTest::test_grad_update | ( | ) | [inline] |
Definition at line 187 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ StdDevTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, GRAD, &of ); }
void StdDevTemplateTest::test_grad_update_sqr | ( | ) | [inline] |
Definition at line 213 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::UPDATE.
{ VarianceTemplate of( NULL ); test_eval_type( ObjectiveFunction::UPDATE, GRAD, &of ); }
void StdDevTemplateTest::test_hessian_diag | ( | ) | [inline] |
Definition at line 301 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); compare_numerical_hessian_diagonal( &of ); }
void StdDevTemplateTest::test_hessian_diag_sqr | ( | ) | [inline] |
Definition at line 306 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); compare_numerical_hessian_diagonal( &of ); }
Definition at line 441 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE, CPPUNIT_ASSERT, MBMesquite::ObjectiveFunction::evaluate_with_Hessian(), MBMesquite::grad(), MBMesquite::MsqHessian::initialize(), MSQ_CHKERR, and value().
{ MsqError err; double value; bool rval; vector< Vector3D > grad; MsqHessian Hess; Hess.initialize( patch(), err ); CPPUNIT_ASSERT( !MSQ_CHKERR( err ) ); OFTestQM metric( &value, 1 ); StdDevTemplate func( &metric ); rval = func.evaluate_with_Hessian( ObjectiveFunction::CALCULATE, patch(), value, grad, Hess, err ); CPPUNIT_ASSERT( err ); }
Definition at line 457 of file StdDevTemplateTest.cpp.
References MBMesquite::ObjectiveFunction::CALCULATE, CPPUNIT_ASSERT, MBMesquite::ObjectiveFunction::evaluate_with_Hessian(), MBMesquite::grad(), MBMesquite::MsqHessian::initialize(), MSQ_CHKERR, and value().
{ MsqError err; double value; bool rval; vector< Vector3D > grad; MsqHessian Hess; Hess.initialize( patch(), err ); CPPUNIT_ASSERT( !MSQ_CHKERR( err ) ); OFTestQM metric( &value, 1 ); VarianceTemplate func( &metric ); rval = func.evaluate_with_Hessian( ObjectiveFunction::CALCULATE, patch(), value, grad, Hess, err ); CPPUNIT_ASSERT( err ); }
void StdDevTemplateTest::test_numerical_gradient | ( | ) | [inline] |
Definition at line 279 of file StdDevTemplateTest.cpp.
{ StdDevTemplate of( NULL ); compare_numerical_gradient( &of ); }
void StdDevTemplateTest::test_numerical_gradient_sqr | ( | ) | [inline] |
Definition at line 284 of file StdDevTemplateTest.cpp.
{ VarianceTemplate of( NULL ); compare_numerical_gradient( &of ); }