test/src_test/include/test_bicop_parametric.hpp
// Test if the C++ implementation of select method using itau is correct
Test if the C++ implementation of select method using itau is correct
Test if the C ++ implementation of select method using itau is correct
TEST_P(ParBicopTest, bicop_select_itau_bic_is_correct)
{
  if (is_member(bicop_.get_family(), bicop_families::itau)) {
    auto true_family = bicop_.get_family_name();
    auto true_rotation = bicop_.get_rotation();
    FitControlsBicop controls(
      { BicopFamily::indep, BicopFamily::gaussian, bicop_.get_family() },
      "itau",
      "quadratic",
      1.0,
      "bic");
    if (needs_check_) {
      auto data = bicop_.simulate(get_n());
      auto bicop = Bicop(data, controls);
      auto selected_family = bicop.get_family_name();
      EXPECT_EQ(selected_family, true_family)
        << bicop.bic(data) << " " << bicop_.bic(data);
      EXPECT_EQ(bicop.get_rotation(), true_rotation)
        << bicop_.str() << std::endl
        << bicop.bic(data) << " " << bicop_.bic(data);
    }
  }
}
TEST_P ( ParBicopTest , bicop_select_itau_bic_is_correct ) { if ( is_member ( bicop_ . get_family ( ) , bicop_families :: itau ) ) { auto true_family = bicop_ . get_family_name ( ) ; auto true_rotation = bicop_ . get_rotation ( ) ; FitControlsBicop controls ( { BicopFamily :: indep , BicopFamily :: gaussian , bicop_ . get_family ( ) } , " " , " " , 1.0 , " " ) ; if ( needs_check_ ) { auto data = bicop_ . simulate ( get_n ( ) ) ; auto bicop = Bicop ( data , controls ) ; auto selected_family = bicop . get_family_name ( ) ; EXPECT_EQ ( selected_family , true_family ) << bicop . bic ( data ) << " " << bicop_ . bic ( data ) ; EXPECT_EQ ( bicop . get_rotation ( ) , true_rotation ) << bicop_ . str ( ) << std :: endl << bicop . bic ( data ) << " " << bicop_ . bic ( data ) ; } } }
Test if the C++ implementation of select method using itau is correct
Test if the C ++ implementation of select method using itau is correct