MCPcopy Create free account
hub / github.com/SIPp/sipp / gsl_init

Function gsl_init

src/stat.cpp:1608–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1606
1607#ifdef HAVE_GSL
1608gsl_rng *gsl_init()
1609{
1610 static gsl_rng *rng = nullptr;
1611
1612 if (rng) {
1613 return rng;
1614 }
1615
1616 gsl_rng_env_setup();
1617 rng = gsl_rng_alloc(gsl_rng_default);
1618 if (!rng) {
1619 ERROR("Could not initialize GSL random number generator");
1620 }
1621
1622 return rng;
1623}
1624
1625/* Normal distribution. */
1626CNormal::CNormal(double mean, double stdev)

Callers 7

CNormalMethod · 0.85
CExponentialMethod · 0.85
CWeibullMethod · 0.85
CParetoMethod · 0.85
CGParetoMethod · 0.85
CGammaMethod · 0.85
CNegBinMethod · 0.85

Calls 1

ERRORFunction · 0.85

Tested by

no test coverage detected