Skip to content

Commit 37357e9

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "37b2023194" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "161191ac2d" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb"
2 parents 8019c0f + 161191a commit 37357e9

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Docker/Dockerfile-Test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update \
55
&& DEBIAN_FRONTEND=noninteractive apt-get install -y dos2unix python3 python3-pip libxml2-utils xsltproc \
66
&& apt-get clean \
77
&& rm -rf /var/lib/apt/lists/* \
8-
&& pip3 install matplotlib pandas nose nose_xunitmp datacompy jsondiff
8+
&& pip3 install matplotlib pandas nose nose_xunitmp datacompy jsondiff lxml
99

1010
CMD bash
1111

QuantExt/test/crossassetmodel.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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 };

QuantExt/test/deltagammavar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ BOOST_AUTO_TEST_CASE(testDeltaGammaVar) {
146146
// TODO test Daniel's approx. explicitly (khat < 1E-5)
147147
// TODO add more test cases (negative gammas, higher dimensions)
148148

149-
Size n = (Size)1E6;
149+
Size n = (Size)400000;
150150

151151
test(1, true, false, 42, 42, n);
152152
test(1, false, true, 42, 42, n);

0 commit comments

Comments
 (0)