philsupertramp/game-math
Loading...
Searching...
No Matches
Classes | Functions
Insurance.h File Reference
#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)
 

Detailed Description

Contains methods of the field of insurance mathematics.

Function Documentation

◆ compoundingFactor()

double compoundingFactor ( double  i)

Compounding factor $$1+i$$

Parameters
iinterest rate
Returns
1+i
Examples
statistics/TestInsurance.cpp.

◆ discountFactor()

double discountFactor ( double  i)

Discounting factor $$\frac{1}{1+i}$$

Parameters
iinterest rate
Returns
1/(1+i)
Examples
statistics/TestInsurance.cpp.

◆ endValue()

double endValue ( Interest  I)

calculates the end value, the balance at the end of I.n periods

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.

◆ endValueOfAnnuityInAdvance()

double endValueOfAnnuityInAdvance ( Interest  I)

calculates the end value, the balance at the end of I.n periods for annuity in advance

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.

◆ endValueOfAnnuityInArrear()

double endValueOfAnnuityInArrear ( Interest  I)

calculates the end value, the balance at the end of I.n periods for annuity in arrear.

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.

◆ fundamentalValue()

double fundamentalValue ( Interest  I)

calculates the fundamental value, the starting balance

Parameters
Ivalues to compute from
Returns
fundamental balance
Examples
statistics/TestInsurance.cpp.

◆ fundamentalValueOfAnnuityInAdvance()

double fundamentalValueOfAnnuityInAdvance ( Interest  I)

calculates the fundamental value, the starting balance for annuity in advance.

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.

◆ fundamentalValueOfAnnuityInArrear()

double fundamentalValueOfAnnuityInArrear ( Interest  I)

calculates the fundamental value, the starting balance for annuity in arrear.

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.

◆ termInPeriods()

double termInPeriods ( Interest  I)

calculates the term per period of given interest

Parameters
Ivalues to compute from
Returns
Examples
statistics/TestInsurance.cpp.