private double Vbardaggerstjern(intensityObject intensiteter, double x) { CashFlowTool tool = new CashFlowTool(); return(tool.muProbability00(intensiteter, 0, x, "") * tool.tekniskReserve_dagger(x, intensiteter)); }
public double calculatePq(intensityObject intensititer, double start, double s**t) { CashFlowTool cashflowtool = new CashFlowTool(); double P00 = cashflowtool.muProbability00(intensititer, start, s**t, ""); return(P00 * MathNet.Numerics.Integration.SimpsonRule.IntegrateThreePoint(y => intensititer.rFunction(y) * (cashflowtool.tekniskReserve_circle(y, intensititer) / cashflowtool.tekniskReserve_dagger(y, intensititer)), start, s**t)); }