Changeset 4876
- Timestamp:
- Aug 25, 2005, 12:52:29 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psFunctions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psFunctions.c
r4857 r4876 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-08-2 3 23:23:05$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-25 22:52:29 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 686 686 specified size and type F32 and fills it with a random Gaussian distribution 687 687 of numbers with the specified mean and sigma. 688 689 XXX: It's possible to have a different seed everutime. However, for now, 690 for testability, we use a common seed. 688 691 *****************************************************************************/ 692 #define PS_XXX_GAUSSIAN_SEED 1995 689 693 psVector* p_psGaussianDev(psF32 mean, psF32 sigma, psS32 Npts) 690 694 { 691 695 PS_ASSERT_INT_NONNEGATIVE(Npts, NULL); 692 696 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); 694 699 psVector* gauss = psVectorAlloc(Npts, PS_TYPE_F32); 695 700 for (psS32 i = 0; i < Npts; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
