Commits on Source (2)
-
Reinhold Kainhofer authored
* Add the $Hooks$Rounding parameter to hold the RoundingHelper object (in the constructor, a named list of rounding specs can be given, which will be coverted to a RoundingHelper by the InsuranceTariff constructor). * Use the helper in most places where rounding intermediate values makes sense * Each use of the rounding helper is indicated by a separate ID, so each rounding occurrence can (and must) be configured separately * By default, no rounding occurs, unless a rounding accuracy (nr of digits) was explicitly configured for the ID * Add documentation
-
Reinhold Kainhofer authored
Showing
- DESCRIPTION 1 addition, 0 deletionsDESCRIPTION
- NAMESPACE 1 addition, 0 deletionsNAMESPACE
- NEWS.md 3 additions, 2 deletionsNEWS.md
- R/InsuranceParameters.R 15 additions, 11 deletionsR/InsuranceParameters.R
- R/InsuranceTarif.R 69 additions, 31 deletionsR/InsuranceTarif.R
- R/RoundingHelper.R 113 additions, 0 deletionsR/RoundingHelper.R
- man/InsuranceContract.ParameterDefaults.Rd 11 additions, 0 deletionsman/InsuranceContract.ParameterDefaults.Rd
- man/InsuranceTarif.Rd 35 additions, 1 deletionman/InsuranceTarif.Rd
- man/RoundingHelper.Rd 240 additions, 0 deletionsman/RoundingHelper.Rd
- tests/testthat/test-RoundingHelper.R 59 additions, 0 deletionstests/testthat/test-RoundingHelper.R
- vignettes/using-the-lifeinsurer-package.Rmd 88 additions, 0 deletionsvignettes/using-the-lifeinsurer-package.Rmd
R/RoundingHelper.R
0 → 100644
man/RoundingHelper.Rd
0 → 100644
tests/testthat/test-RoundingHelper.R
0 → 100644