[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master dd6ee0a 9/9: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master dd6ee0a 9/9: Improve documentation |
Date: |
Sun, 4 Apr 2021 07:00:20 -0400 (EDT) |
branch: master
commit dd6ee0ac9972446fe25ea0735c52195ef4ca77cd
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve documentation
---
i7702.cpp | 16 ++--------------
i7702_init.cpp | 2 +-
2 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/i7702.cpp b/i7702.cpp
index 808b661..8f2c91c 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -152,8 +152,8 @@
/// such charges on asset or premium tiers, which D cannot do.
///
/// For contracts that require an irrevocable choice, before delivery,
-/// between a fixed and a variable loan rate, the path not chosen need
-/// not be considered.
+/// between a fixed and a variable loan rate, the loan path not chosen
+/// need not be considered (but lmi doesn't yet implement VLR).
///
/// Idea not implemented: optionally set all ig* equal to E. The SOA
/// textbook (page 52) supports treating it as "a contractual element
@@ -162,18 +162,6 @@
/// interpretation, which most often produces materially the same
/// result. If a contract specifies E as the monthly equivalent of
/// any rate other than Bgen, that's presumably just a mistake.
-///
-/// Present shortcomings of the code in this file:
-/// [first change names to follow scheme above, adding new ones]
-/// implementation is too simplistic:
-/// igross: max(A0, Bmax)
-/// iglp: max(A0, Bmax) - D
-/// igsp: max(A1, Bmax) - D
-/// ig: max(A0, E)
-/// ig problems:
-/// A1 ignored: must reflect +2% for GSP
-/// and that 2% extra should be parameterized
-/// use contractual rates if greater
i7702::i7702
(int length
diff --git a/i7702_init.cpp b/i7702_init.cpp
index fcabe4c..b454775 100644
--- a/i7702_init.cpp
+++ b/i7702_init.cpp
@@ -130,7 +130,7 @@ i7702::i7702
// [0V + P - Q(1/(1 + ig) - OV - P)] (1 + ic) = 1V
// where it is the monthly (i upper 12 over 12) equivalent of
// the annual 'Bgen_' rate above. Specifying a discount based on
- // any other rate is presumably an error.
+ // any other rate is presumably a product-design error.
//
// In lmi's product database, DB_GuarInt is i. DB_NaarDiscount is
// (i upper 12)/12, rounded iff the contract specifies a rounded
- [lmi-commits] [lmi] master updated (29b2ad4 -> dd6ee0a), Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master f05e4b4 8/9: Confirm correctness of guideline premium calculations, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master dd6ee0a 9/9: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master e8ba2cf 3/9: Move an ancient unit test of sorts, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master f1ec209 1/9: Demonstrate that PETE has a non-zero overhead, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master c7eb277 7/9: Test guideline premium calculations with tiered premium loads, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master 812cf6b 5/9: Prepare to make an ancient unit test useful, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master 89ee2ec 6/9: Repurpose a unit test, Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master 336db06 4/9: Resurrect an ancient unit test [292], Greg Chicares, 2021/04/04
- [lmi-commits] [lmi] master 9b78c44 2/9: Remove a dead reference to an idea that seems silly anyway, Greg Chicares, 2021/04/04