-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from thrasibule/deprecated
Deprecated
- Loading branch information
Showing
23 changed files
with
203 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from libcpp cimport bool | ||
from .._inflation_index cimport ZeroInflationIndex, YoYInflationIndex | ||
from quantlib.handle cimport Handle | ||
from quantlib.termstructures._inflation_term_structure cimport ZeroInflationTermStructure, YoYInflationTermStructure | ||
from quantlib.time.frequency cimport Frequency | ||
|
||
|
||
cdef extern from 'ql/indexes/inflation/aucpi.hpp' namespace 'QuantLib' nogil: | ||
cdef cppclass AUCPI(ZeroInflationIndex): | ||
AUCPI(Frequency frequency, | ||
bool revised, | ||
const Handle[ZeroInflationTermStructure]& ts) | ||
|
||
YYAUCPI(Frequency frequency, | ||
bool revised, | ||
bool interpolated, | ||
const Handle[YoYInflationTermStructure]& ts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from libcpp cimport bool | ||
from .._inflation_index cimport ZeroInflationIndex, YoYInflationIndex | ||
from quantlib.handle cimport Handle | ||
from quantlib.termstructures._inflation_term_structure cimport ZeroInflationTermStructure, YoYInflationTermStructure | ||
|
||
cdef extern from 'ql/indexes/inflation/euhicp.hpp' namespace 'QuantLib' nogil: | ||
cdef cppclass EUHICP(ZeroInflationIndex): | ||
EUHICP(const Handle[ZeroInflationTermStructure]& ts) | ||
|
||
cdef cppclass EUHICPXT(ZeroInflationIndex): | ||
EUHICPXT(const Handle[ZeroInflationTermStructure]& ts) | ||
|
||
cdef cppclass YYEUHICP(YoYInflationIndex): | ||
YYEUHICP(bool interpolated, | ||
const Handle[YoYInflationTermStructure]& ts) | ||
|
||
cdef cppclass YYEUHICPXT(YoYInflationIndex): | ||
YYEUHICPXT(bool interpolated, | ||
const Handle[YoYInflationTermStructure]& ts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from .._inflation_index cimport ZeroInflationIndex | ||
from quantlib.handle cimport Handle | ||
from quantlib.termstructures._inflation_term_structure cimport ZeroInflationTermStructure | ||
|
||
cdef extern from 'ql/indexes/inflation/ukrpi.hpp' namespace 'QuantLib' nogil: | ||
cdef cppclass UKRPI(ZeroInflationIndex): | ||
UKRPI(const Handle[ZeroInflationTermStructure]& ts) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from quantlib.indexes.inflation_index cimport ZeroInflationIndex, YoYInflationIndex | ||
|
||
cdef class AUCPI(ZeroInflationIndex): | ||
pass | ||
|
||
cdef class YYAUCPI(YoYInflationIndex): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from libcpp cimport bool | ||
from . cimport _aucpi | ||
from quantlib.time.frequency cimport Frequency | ||
from quantlib.termstructures.inflation_term_structure cimport ZeroInflationTermStructure | ||
|
||
cdef class AUCPI(ZeroInflationIndex): | ||
def __init__(self, | ||
Frequency frequency, | ||
bool revised, | ||
ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
self._thisptr.reset(new _aucpi.AUCPI(frequency, revised, ts._handle)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from quantlib.indexes.inflation_index cimport ZeroInflationIndex, YoYInflationIndex | ||
|
||
cdef class EUHICP(ZeroInflationIndex): | ||
pass | ||
|
||
cdef class EUHICPXT(ZeroInflationIndex): | ||
pass | ||
|
||
cdef class YYEUHICP(YoYInflationIndex): | ||
pass | ||
|
||
cdef class YYEUHICPXT(YoYInflationIndex): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,21 @@ | ||
from . cimport _euhicp | ||
from libcpp cimport bool | ||
|
||
from quantlib.currency.api import EURCurrency | ||
from quantlib.indexes.regions import EURegion | ||
from quantlib.indexes.inflation_index cimport ( | ||
ZeroInflationIndex, YoYInflationIndex) | ||
from quantlib.time.frequency cimport Monthly | ||
from quantlib.time._period cimport Months | ||
from quantlib.time.date cimport Period | ||
from quantlib.termstructures.inflation_term_structure cimport ( | ||
ZeroInflationTermStructure, YoYInflationTermStructure) | ||
|
||
cdef class EUHICP(ZeroInflationIndex): | ||
def __init__(self, bool interpolated, | ||
ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
|
||
super().__init__("HICP", EURegion(), False, | ||
interpolated, Monthly, Period(1, Months), | ||
EURCurrency(), ts) | ||
def __init__(self, ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
self._thisptr.reset(new _euhicp.EUHICP(ts._handle)) | ||
|
||
|
||
cdef class EUHICPXT(ZeroInflationIndex): | ||
def __init__(self, bool interpolated, | ||
ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
|
||
super().__init__("HICPXT", EURegion(), False, | ||
interpolated, Monthly, Period(1, Months), | ||
EURCurrency(), ts) | ||
def __init__(self, ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
self._thisptr.reset(new _euhicp.EUHICPXT(ts._handle)) | ||
|
||
cdef class YYEUHICP(YoYInflationIndex): | ||
def __init__(self, bool interpolated, | ||
YoYInflationTermStructure ts=YoYInflationTermStructure()): | ||
|
||
super().__init__("YY_HICP", EURegion(), False, | ||
interpolated, Monthly, Period(1, Months), | ||
EURCurrency(), ts) | ||
def __init__(self, bool interpolated, YoYInflationTermStructure ts=YoYInflationTermStructure()): | ||
self._thisptr.reset(new _euhicp.YYEUHICP(interpolated, ts._handle)) | ||
|
||
cdef class YYEUHICPXT(YoYInflationIndex): | ||
def __init__(self, bool interpolated, | ||
YoYInflationTermStructure ts=YoYInflationTermStructure()): | ||
|
||
super().__init__("YY_HICPXT", EURegion(), False, | ||
interpolated, Monthly, Period(1, Months), | ||
EURCurrency(), ts) | ||
def __init__(self, bool interpolated, YoYInflationTermStructure ts=YoYInflationTermStructure()): | ||
self._thisptr.reset(new _euhicp.YYEUHICPXT(interpolated, ts._handle)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from quantlib.indexes.inflation_index cimport ZeroInflationIndex | ||
|
||
cdef class UKRPI(ZeroInflationIndex): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
from libcpp cimport bool | ||
from . cimport _ukrpi | ||
|
||
from quantlib.currency.api import GBPCurrency | ||
from quantlib.indexes.regions import UKRegion | ||
from quantlib.time.date cimport Period | ||
from quantlib.time.date import Months | ||
from quantlib.time.frequency cimport Monthly | ||
from quantlib.indexes.inflation_index cimport ZeroInflationIndex | ||
from quantlib.termstructures.inflation_term_structure \ | ||
cimport ZeroInflationTermStructure | ||
|
||
cdef class UKRPI(ZeroInflationIndex): | ||
def __init__(self, bool interpolated, | ||
ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
|
||
super().__init__("RPI", UKRegion(), False, | ||
interpolated, Monthly, Period(1, Months), | ||
GBPCurrency(), ts) | ||
def __init__(self, ZeroInflationTermStructure ts=ZeroInflationTermStructure()): | ||
self._thisptr.reset(new _ukrpi.UKRPI(ts._handle)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.