DoubleWell.hpp

00001 #ifndef DOUBLEWELL_HPP
00002 #define DOUBLEWELL_HPP
00003 
00004 #include "indii/ml/sde/StochasticDifferentialModel.hpp"
00005 
00006 /**
00007  * Double-well stochastic differential system.
00008  *
00009  * \f[
00010  *   dy = 4y(\theta - y^2)\,dt + \sigma\,dW
00011  * \f]
00012  *
00013  * @author Lawrence Murray <lawrence@indii.org>
00014  * @version $Rev: 579 $
00015  * @date $Date: 2008-12-15 17:02:48 +0000 (Mon, 15 Dec 2008) $
00016  */
00017 class DoubleWell : public indii::ml::sde::StochasticDifferentialModel<> {
00018 public:
00019   /**
00020    * Constructor.
00021    */
00022   DoubleWell();
00023 
00024   /**
00025    * Destructor.
00026    */
00027   virtual ~DoubleWell();
00028 
00029   virtual indii::ml::aux::vector calculateDrift(const double ts,
00030       const indii::ml::aux::vector &y);
00031 
00032   virtual indii::ml::aux::matrix calculateDiffusion(const double ts,
00033       const indii::ml::aux::vector &y);
00034 
00035   static const double THETA = 1.0;
00036   static const double SIGMA = 1.0;
00037 
00038 };
00039 
00040 #endif

Generated on Wed Dec 17 14:56:36 2008 for dysii SDE Test Suite by  doxygen 1.5.3