IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#434 closed defect (fixed)

psFunctions.c uses gsl directly

Reported by: jhoblitt Owned by: gusciora@…
Priority: high Milestone:
Component: types Version: 0.5.0
Severity: normal Keywords:
Cc:

Description

psFunctions.c is violating the abstraction of gsl. The psRandom facilities
should be used instead.

$ grep gsl psFunctions.c

#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>

const gsl_rng_type *T = NULL;
gsl_rng *r = NULL;
gsl_rng_env_setup();
T = gsl_rng_default;
r = gsl_rng_alloc(T);

gauss->data.F32[i] = mean + gsl_ran_gaussian(r, sigma);

Change History (4)

comment:1 by Eric.VanAlst@…, 21 years ago

Owner: changed from robert.desonia@… to gusciora@…

comment:2 by gusciora@…, 21 years ago

Resolution: fixed
Status: newclosed

comment:3 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:4 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.