Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
parsensitivityanalysis.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2016 Quaternion Risk Management Ltd
3 All rights reserved.
4
5 This file is part of ORE, a free-software/open-source library
6 for transparent pricing and risk analysis - http://opensourcerisk.org
7
8 ORE is free software: you can redistribute it and/or modify it
9 under the terms of the Modified BSD License. You should have received a
10 copy of the license along with this program.
11 The license is also available online at <http://opensourcerisk.org>
12
13 This program is distributed on the basis that it will form a useful
14 contribution to risk analytics and model standardisation, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
17*/
18
19/*! \file test/parsensitivityanalysis.hpp
20 \brief Par Sensitivity analysis tests
21 \ingroup tests
22*/
23
24#pragma once
25
26#include <boost/test/unit_test.hpp>
27
28namespace testsuite {
29
30//! Sensitivity analysis tests
31/*!
32 \ingroup tests
33*/
35public:
36 //! Test that shifting all shift curve tenor points by DELTA yields DELTA shifts at all tenor points of the an
37 // underlying curve
38 static void test1dZeroShifts();
39 //! Test that shifting all 2-d shift tenor points by DELTA yields DELTA shifts at all 2-d grid points of the
40 // underlying data
41 static void test2dZeroShifts();
42 //! Test that the portfolio shows the expected sensitivity (regression test)
43 static void testPortfolioZeroSensitivity();
44 //! Test par conversion of sensitivities ("None" observation mode)
45 static void testParConversionNoneObs();
46 //! Test par conversion of sensitivities ("Disable" observation mode)
47 static void testParConversionDisableObs();
48 //! Test par conversion of sensitivities ("Defer" observation mode)
49 static void testParConversionDeferObs();
50 //! Test par conversion of sensitivities ("Unregister" observation mode)
52 static boost::unit_test_framework::test_suite* suite();
53};
54} // namespace testsuite
static void testPortfolioZeroSensitivity()
Test that the portfolio shows the expected sensitivity (regression test)
static void test1dZeroShifts()
Test that shifting all shift curve tenor points by DELTA yields DELTA shifts at all tenor points of t...
static void test2dZeroShifts()
Test that shifting all 2-d shift tenor points by DELTA yields DELTA shifts at all 2-d grid points of ...
static boost::unit_test_framework::test_suite * suite()
static void testParConversionDisableObs()
Test par conversion of sensitivities ("Disable" observation mode)
static void testParConversionDeferObs()
Test par conversion of sensitivities ("Defer" observation mode)
static void testParConversionUnregisterObs()
Test par conversion of sensitivities ("Unregister" observation mode)
static void testParConversionNoneObs()
Test par conversion of sensitivities ("None" observation mode)