philsupertramp/game-math
|
#include "Probability.h"
Go to the source code of this file.
Classes | |
struct | Interest |
Functions | |
double | compoundingFactor (double i) |
double | discountFactor (double i) |
double | fundamentalValue (Interest I) |
double | endValue (Interest I) |
double | termInPeriods (Interest I) |
double | fundamentalValueOfAnnuityInAdvance (Interest I) |
double | endValueOfAnnuityInAdvance (Interest I) |
double | fundamentalValueOfAnnuityInArrear (Interest I) |
double | endValueOfAnnuityInArrear (Interest I) |
Contains methods of the field of insurance mathematics.
double compoundingFactor | ( | double | i | ) |
Compounding factor $$1+i$$
i | interest rate |
double discountFactor | ( | double | i | ) |
Discounting factor $$\frac{1}{1+i}$$
i | interest rate |
double endValue | ( | Interest | I | ) |
calculates the end value, the balance at the end of I.n periods
I | values to compute from |
double endValueOfAnnuityInAdvance | ( | Interest | I | ) |
calculates the end value, the balance at the end of I.n periods for annuity in advance
I | values to compute from |
double endValueOfAnnuityInArrear | ( | Interest | I | ) |
calculates the end value, the balance at the end of I.n periods for annuity in arrear.
I | values to compute from |
double fundamentalValue | ( | Interest | I | ) |
calculates the fundamental value, the starting balance
I | values to compute from |
double fundamentalValueOfAnnuityInAdvance | ( | Interest | I | ) |
calculates the fundamental value, the starting balance for annuity in advance.
I | values to compute from |
double fundamentalValueOfAnnuityInArrear | ( | Interest | I | ) |
calculates the fundamental value, the starting balance for annuity in arrear.
I | values to compute from |
double termInPeriods | ( | Interest | I | ) |
calculates the term per period of given interest
I | values to compute from |