QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
hazardratestructure.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2008 Jose Aparicio
5 Copyright (C) 2008 Chris Kenyon
6 Copyright (C) 2008 Roland Lichters
7 Copyright (C) 2008 StatPro Italia srl
8 Copyright (C) 2009 Ferdinando Ametrano
9
10 This file is part of QuantLib, a free-software/open-source library
11 for financial quantitative analysts and developers - http://quantlib.org/
12
13 QuantLib is free software: you can redistribute it and/or modify it
14 under the terms of the QuantLib license. You should have received a
15 copy of the license along with this program; if not, please email
16 <quantlib-dev@lists.sf.net>. The license is also available online at
17 <http://quantlib.org/license.shtml>.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21 FOR A PARTICULAR PURPOSE. See the license for more details.
22*/
23
28#ifndef quantlib_hazard_rate_structure_hpp
29#define quantlib_hazard_rate_structure_hpp
30
31#include <ql/termstructures/defaulttermstructure.hpp>
32
33namespace QuantLib {
34
36
49 public:
57 const std::vector<Handle<Quote> >& jumps = {},
58 const std::vector<Date>& jumpDates = {});
60 const Date& referenceDate,
61 const Calendar& cal = Calendar(),
63 const std::vector<Handle<Quote> >& jumps = {},
64 const std::vector<Date>& jumpDates = {});
67 const Calendar& cal,
69 const std::vector<Handle<Quote> >& jumps = {},
70 const std::vector<Date>& jumpDates = {});
72 protected:
82 Real hazardRateImpl(Time) const override;
84
86
87
100 Real defaultDensityImpl(Time) const override;
102 };
103
104 // inline definitions
105
108 }
109
110}
111
112#endif
calendar class
Definition: calendar.hpp:61
Concrete date class.
Definition: date.hpp:125
day counter class
Definition: daycounter.hpp:44
Default probability term structure.
const std::vector< Date > & jumpDates() const
Shared handle to an observable.
Definition: handle.hpp:41
Hazard-rate term structure.
Real defaultDensityImpl(Time) const override
default density calculation
Real hazardRateImpl(Time) const override
hazard rate calculation
Probability survivalProbabilityImpl(Time) const override
virtual Natural settlementDays() const
the settlementDays used for reference date calculation
virtual const Date & referenceDate() const
the date at which discount = 1.0 and/or variance = 0.0
virtual DayCounter dayCounter() const
the day counter used for date/time conversion
Real Time
continuous quantity with 1-year units
Definition: types.hpp:62
QL_REAL Real
real number
Definition: types.hpp:50
unsigned QL_INTEGER Natural
positive integer
Definition: types.hpp:43
Real Probability
probability
Definition: types.hpp:82
Definition: any.hpp:35