IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 822


Ignore:
Timestamp:
Jun 1, 2004, 12:24:55 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psFunctions.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/*****************************************************************************/
    116#include <stdlib.h>
    217#include <stdio.h>
     
    1833#include <gsl/gsl_rng.h>
    1934#include <gsl/gsl_randist.h>
     35/*****************************************************************************/
     36/*  FUNCTION IMPLEMENTATION - PUBLIC                                         */
     37/*****************************************************************************/
     38
    2039/*****************************************************************************
    2140    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    4160/*****************************************************************************
    4261    psGaussianDev()
    43  
    4462 This routine creates a psVector of the specified size and type F32
    45  and fils it with a random Gaussiang distribution of numbers with
    46  the specified meand and sigma.  This routine makes use of the GSL
     63 and fills it with a random Gaussian distribution of numbers with
     64 the specified mean and sigma.  This routine makes use of the GSL
    4765 routines for generating both uniformly distributed numbers and the
    4866 Gaussian distribution as well.
     
    6583        gauss->vec.f[i] = mean + gsl_ran_gaussian(r, sigma);
    6684    }
     85
     86    // GUS: Should I free r as well?
    6787    return(gauss);
    6888}
  • trunk/psLib/src/math/psPolynomial.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/*****************************************************************************/
    116#include <stdlib.h>
    217#include <stdio.h>
     
    1833#include <gsl/gsl_rng.h>
    1934#include <gsl/gsl_randist.h>
     35/*****************************************************************************/
     36/*  FUNCTION IMPLEMENTATION - PUBLIC                                         */
     37/*****************************************************************************/
     38
    2039/*****************************************************************************
    2140    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    4160/*****************************************************************************
    4261    psGaussianDev()
    43  
    4462 This routine creates a psVector of the specified size and type F32
    45  and fils it with a random Gaussiang distribution of numbers with
    46  the specified meand and sigma.  This routine makes use of the GSL
     63 and fills it with a random Gaussian distribution of numbers with
     64 the specified mean and sigma.  This routine makes use of the GSL
    4765 routines for generating both uniformly distributed numbers and the
    4866 Gaussian distribution as well.
     
    6583        gauss->vec.f[i] = mean + gsl_ran_gaussian(r, sigma);
    6684    }
     85
     86    // GUS: Should I free r as well?
    6787    return(gauss);
    6888}
  • 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/*****************************************************************************/
    116#include <stdlib.h>
    217#include <stdio.h>
     
    1833#include <gsl/gsl_rng.h>
    1934#include <gsl/gsl_randist.h>
     35/*****************************************************************************/
     36/*  FUNCTION IMPLEMENTATION - PUBLIC                                         */
     37/*****************************************************************************/
     38
    2039/*****************************************************************************
    2140    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    4160/*****************************************************************************
    4261    psGaussianDev()
    43  
    4462 This routine creates a psVector of the specified size and type F32
    45  and fils it with a random Gaussiang distribution of numbers with
    46  the specified meand and sigma.  This routine makes use of the GSL
     63 and fills it with a random Gaussian distribution of numbers with
     64 the specified mean and sigma.  This routine makes use of the GSL
    4765 routines for generating both uniformly distributed numbers and the
    4866 Gaussian distribution as well.
     
    6583        gauss->vec.f[i] = mean + gsl_ran_gaussian(r, sigma);
    6684    }
     85
     86    // GUS: Should I free r as well?
    6787    return(gauss);
    6888}
Note: See TracChangeset for help on using the changeset viewer.