lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 24e01a1 2/2: Add new data members and accesso


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 24e01a1 2/2: Add new data members and accessors for 7702 interest rates
Date: Fri, 12 Mar 2021 06:32:47 -0500 (EST)

branch: master
commit 24e01a18d916001ccf3766cece77e29d14ab8507
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Add new data members and accessors for 7702 interest rates
---
 i7702.hpp | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/i7702.hpp b/i7702.hpp
index 82b50c1..9839017 100644
--- a/i7702.hpp
+++ b/i7702.hpp
@@ -45,7 +45,14 @@ class LMI_SO i7702 final
     i7702& operator=(i7702 const&) = delete;
     ~i7702() = default;
 
-    std::vector<double> const& ig     () const {return ig_;  }
+    std::vector<double> const& ic_usual() const {return ic_usual_;}
+    std::vector<double> const& ic_glp  () const {return ic_glp_  ;}
+    std::vector<double> const& ic_gsp  () const {return ic_gsp_  ;}
+    std::vector<double> const& ig_usual() const {return ig_usual_;}
+    std::vector<double> const& ig_glp  () const {return ig_glp_  ;}
+    std::vector<double> const& ig_gsp  () const {return ig_gsp_  ;}
+    // 7702 !! Obsolescent.
+    std::vector<double> const& ig     () const {return ig_;     }
     std::vector<double> const& gross  () const {return gross_;  }
     std::vector<double> const& net_glp() const {return net_glp_;}
     std::vector<double> const& net_gsp() const {return net_gsp_;}
@@ -74,7 +81,8 @@ class LMI_SO i7702 final
 
     // Parameters from product database--member names are
     // capitalized to match formulas in documentation, but
-    // suffixed to mark them as members.
+    // suffixed to mark them as members. All are annual rates
+    // except 'Em_', which is monthly.
     double              A0_   ;
     double              A1_   ;
     std::vector<double> Bgen_ ;
@@ -91,7 +99,14 @@ class LMI_SO i7702 final
     std::vector<double> Dvlr_ ;
     std::vector<double> Em_   ;
 
-    // Derived 7702 interest rates.
+    // Derived 7702 interest rates--all monthly.
+    std::vector<double> ic_usual_;
+    std::vector<double> ic_glp_  ;
+    std::vector<double> ic_gsp_  ;
+    std::vector<double> ig_usual_;
+    std::vector<double> ig_glp_  ;
+    std::vector<double> ig_gsp_  ;
+    // 7702 !! Obsolescent.
     std::vector<double> ig_     ;
     std::vector<double> gross_  ;
     std::vector<double> net_glp_;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]