• Main Page
  • Namespaces
  • Classes
  • Files
  • File List

RDE_lib2/MakeBrownianPath.h

00001 /* *************************************************************
00002 
00003 Copyright 2010 Terry Lyons, Stephen Buckley, Djalil Chafai, 
00004 Greg Gyurkó and Arend Janssen. 
00005 
00006 Distributed under the terms of the GNU General Public License, 
00007 Version 3. (See accompanying file License.txt)
00008 
00009 ************************************************************* */
00010 
00011 
00012 
00013 #pragma once
00014 
00015 #ifndef MakeBrownianPath_h__
00016 #define MakeBrownianPath_h__
00017 
00018 
00019 #include "BrownianPath.h"
00020 #include "Path.h"
00021 #include <memory>
00022 #include <functional>
00023 
00024 template <typename my_alg_type>
00025 Path<my_alg_type> MakeBrownianPath()
00026 {
00027         std::tr1::shared_ptr< const BrownianPath<my_alg_type> > p(new BrownianPath<my_alg_type>());
00028         return Path<my_alg_type>(p);
00029 };
00030 
00031 template <typename my_alg_type>
00032 Path<my_alg_type> MakeBrownianPath( NormalRandomNumberGenerator & rand, unsigned int d = my_alg_type::myDIM )
00033 {
00034         std::tr1::shared_ptr< const BrownianPath<my_alg_type> > p(new BrownianPath<my_alg_type>(rand,d));
00035         return Path<my_alg_type>(p);
00036 };
00037 
00038 #endif // MakeBrownianPath_h__

Generated on Fri Jan 14 2011 17:50:33 for Rough Differential Equation Solver by  doxygen 1.7.1