Pelsser.SquaredGaussianModel.f C# (CSharp) Méthode

f() public méthode

Calculates the instantaneous forward.
public f ( double t, double dt ) : double
t double The time where to calculate the instantaneous forward.
dt double /// The delta of time to consider to calculate the instantaneous forward. ///
Résultat double
        public double f(double t, double dt)
        {
            if (t == 0)
                return ZR(t);
            else
                return (ZR(t) * t - ZR(t - dt) * (t - dt)) / dt;
        }