Exemplo n.º 1
0
 protected BinomialTree(StochasticProcess1D process, double end, int steps)
     : base(steps + 1)
 {
     x0_           = process.x0();
     dt_           = end / steps;
     driftPerStep_ = process.drift(0.0, x0_) * dt_;
 }
Exemplo n.º 2
0
 /*! Returns an approximation of the drift defined as
  *  \f$ \mu(t_0, x_0) \Delta t \f$. */
 public double drift(StochasticProcess1D process, double t0, double x0, double dt)
 {
     return(process.drift(t0, x0) * dt);
 }