/usr/include/CLHEP/Random/Stat.h is in libclhep-dev 2.1.4.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | // $Id: Stat.h,v 1.3 2003/10/23 21:29:51 garren Exp $
// -*- C++ -*-
//
// -----------------------------------------------------------------------
// HEP Random
// --- HepStat ---
// Purely static class containing useful statistics methods
// -----------------------------------------------------------------------
// HepStat is a substitute for using a namespace.
// One would never instantiate a HepStat object;
// usage of any of these methods looks like --
//
// double x = HepStat::erf ( .1 );
//
// A user may wish to improve the readability of algortihm code which uses
// one method many times by lines like using HepStat::erf
//
// and later, x = erf(u); will work.
//
// These methods are implemented in separate .cc files so that
// user code need pull in only the code that is necessary. Time
// (ROUGH estimates in cycles) and table footprint info is provided
// in this header.
// =======================================================================
// M. Fischler - Created: 1/25/00
//
// M. Fischler - Inserted flatToGaussian 1/25/00
// From code of an attempt to speed up RandGauss
// by use of tables and splines. The code was not
// significantly faster than Box-Mueller, so that
// algorithm is left as the RandGauss implementation.
// - Inserted inverseErf
// M. Fischler - Inserted gammln 2/4/00
// M. Fischler - Made constructor private; removed private destructor 4/17/00
// =======================================================================
#ifndef HepStat_h
#define HepStat_h 1
#include "CLHEP/Random/defs.h"
namespace CLHEP {
/**
* @author
* @ingroup random
*/
class HepStat {
private:
HepStat();
// You CANNOT instantiate a HepStat object.
public:
static double flatToGaussian (double r);
// This is defined by the satement that if e() provides a uniform random
// on (0,1) then flatToGaussian(e()) is distributed as a unit normal
// Gaussian. That is, flatToGaussian is the inverse of the c.d.f. of
// a Gaussian.
// Footprint: 30 K // Time: 150 cycles
static double inverseErf (double t);
static double erf (double x);
// defined in flatToGaussian.cc
static double erfQ (double x);
// Quicker, and with less footprint, than erf and gaussianCDF
// but only accurate to 7 digits.
// Footprint: 0 // Time:
static double gammln (double x);
// ln (gamma(x))
};
} // namespace CLHEP
#ifdef ENABLE_BACKWARDS_COMPATIBILITY
// backwards compatibility will be enabled ONLY in CLHEP 1.9
using namespace CLHEP;
#endif
#endif
|