Changeset 4857 for trunk/psLib/src/math/psRandom.c
- Timestamp:
- Aug 23, 2005, 1:23:05 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psRandom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psRandom.c
r4540 r4857 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 7-12 19:12:01$12 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-23 23:23:05 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 130 130 } 131 131 132 double p_psRandomGaussian(const psRandom *r, double sigma) 133 { 134 // Check null psRandom variable 135 if(r == NULL) { 136 psError(PS_ERR_UNEXPECTED_NULL, 137 true, 138 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR); 139 return(0); 140 } else { 141 return(gsl_ran_gaussian(r->gsl, sigma)); 142 } 143 } 144 132 145 double psRandomPoisson(const psRandom *r, double mean) 133 146 {
Note:
See TracChangeset
for help on using the changeset viewer.
