IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2005, 1:23:05 PM (21 years ago)
Author:
gusciora
Message:

Eliminated gsl calls in psFunctions.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psRandom.c

    r4540 r4857  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-07-12 19:12:01 $
     12*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-08-23 23:23:05 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    130130}
    131131
     132double 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
    132145double psRandomPoisson(const psRandom *r, double mean)
    133146{
Note: See TracChangeset for help on using the changeset viewer.