3#include "CLHEP/GenericFunctions/defs.h"
4#include "CLHEP/GenericFunctions/BivariateGaussian.hh"
9#if (defined __STRICT_ANSI__) || (defined _WIN32)
11#define M_PI 3.14159265358979323846
19 _mean0("Mean0", 0.0,-10,10),
20 _mean1("Mean1", 0.0,-10,10),
21 _sigma0("Sigma0",1.0,0, 10),
22 _sigma1("Sigma1",1.0,0, 10),
23 _corr01("Corr01", 0.0, -1.0, 1.0)
33 _sigma0(right._sigma0),
34 _sigma1(right._sigma1),
35 _corr01(right._corr01)
55 double dt = (1.0+rho)*(1.0-rho);
57 return (1.0/(2*M_PI*sx*sy*sqrt(dt))) *
58 exp(-1.0/(2.0*dt)*(dx*dx/sxs+dy*dy/sys-2.0*rho*dx*dy/sx/sy));
111 <<
"Warning. bivariate Gaussian called with scalar argument"
#define FUNCTION_OBJECT_IMP(classname)
unsigned int dimension() const
virtual double operator()(double argument) const override
virtual unsigned int dimensionality() const override
virtual ~BivariateGaussian()
virtual double getValue() const