diff options
| -rw-r--r-- | pyisda/curve.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/curve.pyx b/pyisda/curve.pyx index 94deda1..c10ad48 100644 --- a/pyisda/curve.pyx +++ b/pyisda/curve.pyx @@ -721,7 +721,7 @@ cdef void tweak_curve(const TCurve* sc, TCurve* sc_tweaked, double epsilon, else: for i in range(sc.fNumItems): h2 = sc.fArray[i].fRate - t2 = (sc.fArray[i].fDate - sc.fBaseDate) / 365. + t2 = sc.fArray[i].fDate - sc.fBaseDate c += (h2 * t2 - h1 * t1) * (1 + epsilon * ((mask >> i) & 1)) sc_tweaked.fArray[i].fRate = c / t2 h1 = h2 |
