IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4876


Ignore:
Timestamp:
Aug 25, 2005, 12:52:29 PM (21 years ago)
Author:
gusciora
Message:

Removed GSL code.

File:
1 edited

Legend:

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

    r4857 r4876  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2005-08-23 23:23:05 $
     9*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-08-25 22:52:29 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    686686 specified size and type F32 and fills it with a random Gaussian distribution
    687687 of numbers with the specified mean and sigma.
     688 
     689XXX: It's possible to have a different seed everutime.  However, for now,
     690for testability, we use a common seed.
    688691 *****************************************************************************/
     692#define PS_XXX_GAUSSIAN_SEED 1995
    689693psVector* p_psGaussianDev(psF32 mean, psF32 sigma, psS32 Npts)
    690694{
    691695    PS_ASSERT_INT_NONNEGATIVE(Npts, NULL);
    692696
    693     psRandom *r = psRandomAlloc(PS_RANDOM_TAUS, p_psRandomGetSystemSeed());
     697    //    psRandom *r = psRandomAlloc(PS_RANDOM_TAUS, p_psRandomGetSystemSeed());
     698    psRandom *r = psRandomAlloc(PS_RANDOM_TAUS, PS_XXX_GAUSSIAN_SEED);
    694699    psVector* gauss = psVectorAlloc(Npts, PS_TYPE_F32);
    695700    for (psS32 i = 0; i < Npts; i++) {
Note: See TracChangeset for help on using the changeset viewer.