@@ -2299,7 +2299,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMartingaleProperty,
22992299 BOOST_TEST_MESSAGE (" get Euler state process" );
23002300 boost::shared_ptr<StochasticProcess> process2 = d.modelEuler ->stateProcess ();
23012301
2302- Size n = 50000 ; // number of paths
2302+ Size n = 5000 ; // number of paths
23032303 Size seed = 18 ; // rng seed
23042304 Time T = 2.0 ; // maturity of payoff
23052305 Time T2 = 20.0 ; // zerobond maturity
@@ -2456,7 +2456,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMartingaleProperty,
24562456
24572457 // a bit higher than for plain zero bond , since we look at indexed zero
24582458 // bonds, too
2459- Real tol1 = 3 .0E-4 ; // EXACT
2459+ Real tol1 = 5 .0E-4 ; // EXACT
24602460 Real tol2 = 14.0E-4 ; // EULER
24612461
24622462 Real ev = d.eurYts ->discount (T2);
@@ -2565,7 +2565,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
25652565
25662566 Real T = 2.0 ; // horizon at which we compare the moments
25672567 Size steps = static_cast <Size>(T * 10 ); // number of simulation steps (Euler and exact)
2568- Size paths = 30000 ; // number of paths
2568+ Size paths = 10000 ; // number of paths
25692569
25702570 Array e_an = p_exact->expectation (0.0 , p_exact->initialValues (), T);
25712571 Matrix v_an = p_exact->covariance (0.0 , p_exact->initialValues (), T);
@@ -2646,7 +2646,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
26462646 }
26472647 BOOST_TEST_MESSAGE (" ==================" );
26482648
2649- Real errTolLd[] = { 0.5E-4 , 0.5E-4 , 0.5E-4 , 10.0E-4 , 10.0E-4 , 0.9E -4 , 0.8E -4 , 0.7E -4 , 0.7E -4 , 0.7E -4 , 0.7E -4 , 0.7E -4 , 0.7E -4 };
2649+ Real errTolLd[] = { 0.5E-4 , 0.5E-4 , 0.5E-4 , 10.0E-4 , 10.0E-4 , 1E -4 , 1E -4 , 1E -4 , 1E -4 , 1E -4 , 1E -4 , 1E -4 , 1E -4 };
26502650
26512651 for (Size i = 0 ; i < n; ++i) {
26522652 // check expectation against analytical calculation (Euler)
@@ -2667,7 +2667,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
26672667 << e_an[i] - mean (e_eu2[i]) << " tolerance is "
26682668 << errTolLd[i]);
26692669 }
2670- }
2670+ }
26712671
26722672 // as above, this is a bit rough compared to the more differentiated
26732673 // test of the IR-FX model ...
@@ -3872,7 +3872,7 @@ BOOST_AUTO_TEST_CASE(testCorrelationRecovery) {
38723872
38733873 // for ir-fx this fully specifies the correlation matrix
38743874 // for new asset classes add other possible combinations as well
3875- Size currencies[] = { 1 , 2 , 3 , 4 , 5 , 10 , 20 , 50 , 100 };
3875+ Size currencies[] = { 1 , 2 , 3 , 4 , 5 , 10 , 20 };
38763876
38773877 MersenneTwisterUniformRng mt (42 );
38783878
@@ -4181,7 +4181,7 @@ BOOST_AUTO_TEST_CASE(testIrFxInfCrEqCorrelationRecovery) {
41814181
41824182 // for ir-fx this fully specifies the correlation matrix
41834183 // for new asset classes add other possible combinations as well
4184- Size currencies[] = { 1 , 2 , 3 , 4 , 5 , 10 , 20 };
4184+ Size currencies[] = { 1 , 2 , 3 , 4 , 5 };
41854185 Size cpiindexes[] = { 0 , 1 , 10 };
41864186 Size creditnames[] = { 0 , 1 , 5 };
41874187 Size eqs[] = { 0 , 1 , 5 };
0 commit comments