Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

Real QuantLib::OrnsteinUhlenbeckProcess::expectation ( Time  t0,
Real  x0,
Time  dt 
) const [virtual]

returns the expectation $ E(x_{t_0 + \Delta t} | x_{t_0} = x_0) $ of the process after a time interval $ \Delta t $ according to the given discretization. This method can be overridden in derived classes which want to hard-code a particular discretization.

Reimplemented from QuantLib::StochasticProcess1D.

Definition at line 43 of file ornsteinuhlenbeckprocess.cpp.

        return x0*std::exp(-speed_*dt);

Generated by  Doxygen 1.6.0   Back to index