Changeset 822 for trunk/psLib/src/math/psSpline.c
- Timestamp:
- Jun 1, 2004, 12:24:55 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psSpline.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSpline.c
r793 r822 1 /** @file psFunctions.c 2 * 3 * @brief Contains basic function allocation, deallocation, and evaluation 4 * routines. 5 * 6 * @author George Gusciora, MHPCC 7 * 8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-06-01 22:24:55 $ 10 * 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 12 */ 13 /*****************************************************************************/ 14 /* INCLUDE FILES */ 15 /*****************************************************************************/ 1 16 #include <stdlib.h> 2 17 #include <stdio.h> … … 18 33 #include <gsl/gsl_rng.h> 19 34 #include <gsl/gsl_randist.h> 35 /*****************************************************************************/ 36 /* FUNCTION IMPLEMENTATION - PUBLIC */ 37 /*****************************************************************************/ 38 20 39 /***************************************************************************** 21 40 Evaluate a non-normalized Gaussian with the given mean and sigma at the … … 41 60 /***************************************************************************** 42 61 psGaussianDev() 43 44 62 This routine creates a psVector of the specified size and type F32 45 and fil s it with a random Gaussiangdistribution of numbers with46 the specified mean dand sigma. This routine makes use of the GSL63 and fills it with a random Gaussian distribution of numbers with 64 the specified mean and sigma. This routine makes use of the GSL 47 65 routines for generating both uniformly distributed numbers and the 48 66 Gaussian distribution as well. … … 65 83 gauss->vec.f[i] = mean + gsl_ran_gaussian(r, sigma); 66 84 } 85 86 // GUS: Should I free r as well? 67 87 return(gauss); 68 88 }
Note:
See TracChangeset
for help on using the changeset viewer.
