1 #ifndef __JMATH__JMATHLIB2D__
2 #define __JMATH__JMATHLIB2D__
14 namespace JPP {
using namespace JMATH; }
51 template<
class ...Args>
66 return static_cast<const JF1_t&
>(*this).getValue(
x);
81 static_cast<JF1_t&
>(gradient) =
static_cast<const JF1_t&
>(*this).
getGradient(
x);
121 template<
class ...Args>
136 return static_cast<const JF1_t&
>(*this).getValue(
y);
151 static_cast<JF1_t&
>(gradient) =
static_cast<const JF1_t&
>(*this).
getGradient(
y);
181 template<
int ID_t,
bool normalise = false>
183 public JMathlib< JGauss2D<ID_t, normalise> >,
184 public JGauss<ID_t, normalise>
203 const double sigma) :
219 return (
static_cast<const JGauss_t&
>(*this).getValue(
x) *
220 static_cast<const JGauss_t&
>(*this).getValue(
y));
const JPolynome f1(1.0, 2.0, 3.0)
Function.
Auxiliary classes and methods for mathematical operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
2D correlated Gauss function.
const JGauss2D & getGradient(const double x, const double y) const
Get gradient.
double getValue(const double x, const double y) const
Function value.
JGauss2D()
Default constructor.
JGauss2D(const double mean, const double sigma)
Constructor.
JGauss_t & mul(const double factor)
Scale gauss.
JGauss_t()
Default constructor.
Make 2D function of x from 1D function.
JMake2X(const JF1_t &f1)
Constructor.
const JMake2X & getGradient(const double x, const double y) const
Get gradient.
JMake2X()
Default constructor.
double getValue(const double x, const double y) const
Function value.
JMake2X(const Args &...args)
Constructor.
Make 2D function of y from 1D function.
JMake2Y(const Args &...args)
Constructor.
JMake2Y(const JF1_t &f1)
Constructor.
JMake2Y()
Default constructor.
const JMake2Y & getGradient(const double x, const double y) const
Get gradient.
double getValue(const double x, const double y) const
Function value.
forward declaration for fixed power of function.