From 27e15cb01dc73373e741930f4760d06dee3a260a Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 31 May 2023 13:12:59 -0400 Subject: this would get cancelled out --- pyisda/curve.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2