#include "PIDAAlg.h"
Definition at line 21 of file PIDAAlg.h.
util::NormalDistribution::NormalDistribution |
( |
| ) |
|
|
inline |
util::NormalDistribution::NormalDistribution |
( |
float |
max_sigma, |
|
|
float |
step_size |
|
) |
| |
Definition at line 335 of file PIDAAlg.cxx.
338 throw "util::NormalDistribution --- Cannot have zero step size!";
340 const size_t vector_size = (size_t)(max_sigma / step_size);
343 const float AMPLITUDE = 1. / std::sqrt(2*M_PI);
346 for(
size_t i_step=0; i_step<vector_size; i_step++){
347 float diff = i_step*step_size;
348 fValues[i_step] = AMPLITUDE * std::exp(-0.5*diff*diff);
352 for(
size_t i_step=0; i_step<vector_size; i_step++)
353 fValues[i_step] /= (integral*2);
std::vector< float > fValues
float util::NormalDistribution::getValue |
( |
float |
x | ) |
|
float util::NormalDistribution::fMaxSigma |
|
private |
float util::NormalDistribution::fStepSize |
|
private |
std::vector<float> util::NormalDistribution::fValues |
|
private |
The documentation for this class was generated from the following files:
- /cvmfs/larsoft.opensciencegrid.org/products/larana/v07_04_02/source/larana/ParticleIdentification/PIDAAlg.h
- /cvmfs/larsoft.opensciencegrid.org/products/larana/v07_04_02/source/larana/ParticleIdentification/PIDAAlg.cxx