~ubuntu-branches/ubuntu/vivid/quantlib-swig/vivid

« back to all changes in this revision

Viewing changes to SWIG/interestrate.i

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-12-03 17:01:53 UTC
  • mfrom: (1.1.9 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091203170153-x5yrwybjsl2q11vw
* New upstream release

* debian/control: Updated Standards-Version: to current value

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    InterestRate(Rate r,
59
59
                 const DayCounter& dc,
60
60
                 Compounding comp,
61
 
                 Frequency freq = Annual);
 
61
                 Frequency freq);
62
62
    Rate rate() const;
63
63
    DayCounter dayCounter() const;
64
64
    Compounding compounding() const;
65
65
    Frequency frequency() const;
66
66
    DiscountFactor discountFactor(Time t) const;
67
 
    DiscountFactor discountFactor(Date d1, Date d2) const;
 
67
    DiscountFactor discountFactor(const Date& d1, const Date& d2,
 
68
                                  const Date& refStart = Date(),
 
69
                                  const Date& refEnd = Date()) const;
68
70
    Real compoundFactor(Time t) const;
69
 
    Real compoundFactor(Date d1, Date d2) const;
70
 
    static InterestRate impliedRate(Real compound,
71
 
                                    Time t,
72
 
                                    const DayCounter& resultDC,
73
 
                                    Compounding comp,
74
 
                                    Frequency freq = Annual);
75
 
    static InterestRate impliedRate(Real compound,
 
71
    Real compoundFactor(const Date& d1, const Date& d2,
 
72
                        const Date& refStart = Date(),
 
73
                        const Date& refEnd = Date()) const;
 
74
    static InterestRate impliedRate(Real compound,
 
75
                                    const DayCounter& resultDC,
 
76
                                    Compounding comp,
 
77
                                    Frequency freq,
 
78
                                    Time t);
 
79
    static InterestRate impliedRate(Real compound,
 
80
                                    const DayCounter& resultDC,
 
81
                                    Compounding comp,
 
82
                                    Frequency freq,
76
83
                                    const Date& d1,
77
84
                                    const Date& d2,
78
 
                                    const DayCounter& resultDC,
79
 
                                    Compounding comp,
80
 
                                    Frequency freq = Annual);
81
 
    InterestRate equivalentRate(Time t,
 
85
                                    const Date& refStart = Date(),
 
86
                                    const Date& refEnd = Date());
 
87
    InterestRate equivalentRate(Compounding comp,
 
88
                                Frequency freq,
 
89
                                Time t) const;
 
90
    InterestRate equivalentRate(const DayCounter& resultDayCounter,
82
91
                                Compounding comp,
83
 
                                Frequency freq = Annual) const;
84
 
    InterestRate equivalentRate(const Date& d1,
 
92
                                Frequency freq,
 
93
                                const Date& d1,
85
94
                                const Date& d2,
86
 
                                const DayCounter& resultDayCounter,
87
 
                                Compounding comp,
88
 
                                Frequency freq = Annual) const;
 
95
                                const Date& refStart = Date(),
 
96
                                const Date& refEnd = Date()) const;
89
97
    %extend {
90
98
        std::string __str__() {
91
99
            std::ostringstream out;