00001 #pragma ident "$Id: random.hpp 1182 2008-04-04 14:07:43Z btolman $" 00002 00003 //============================================================================ 00004 // 00005 // This file is part of GPSTk, the GPS Toolkit. 00006 // 00007 // The GPSTk is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as published 00009 // by the Free Software Foundation; either version 2.1 of the License, or 00010 // any later version. 00011 // 00012 // The GPSTk is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with GPSTk; if not, write to the Free Software Foundation, 00019 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 // 00021 // Copyright 2004, The University of Texas at Austin 00022 // 00023 //============================================================================ 00024 00030 #ifndef GPSTK_GEOMATICS_RANDOM_INCLUDE 00031 #define GPSTK_GEOMATICS_RANDOM_INCLUDE 00032 00034 double Rand(long seed=0); 00035 00038 double RandNorm(double sigma); 00039 00042 int ARand(int low, int hi); 00043 00046 double ARand(double low, double hi); 00047 00050 double RandomWalk(double dt, double sigma, double xlast); 00051 00054 double RandExpCor(double dt, double sigma, double T, double xlast); 00055 00056 #endif
1.3.9.1