Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
Classes | Namespaces | Typedefs | Functions | Variables
JMathlib.hh File Reference

Functional algebra. More...

#include <cstddef>
#include <vector>
#include <initializer_list>
#include <cmath>
#include "JMath/JConstants.hh"

Go to the source code of this file.

Classes

struct  JMATH::make_carray
 void function More...
 
struct  JMATH::parameter_list< JF1_t >
 Auxiliary data structure for list of parameters. More...
 
struct  JMATH::JCalculus< JF1_t >
 Auxiliary base class for mathematical operations on parameters of function. More...
 
struct  JMATH::JMathlib< JF1_t >
 forward declaration for fixed power of function. More...
 
struct  JMATH::JNegate< JF1_t >
 Negate of function. More...
 
struct  JMATH::JAdd< JF1_t, double >
 Addition of constant value. More...
 
struct  JMATH::JSub< JF1_t, double >
 Subtraction of constant value. More...
 
struct  JMATH::JMul< JF1_t, double >
 Multiplication of constant value. More...
 
struct  JMATH::JDiv< JF1_t, double >
 Division of constant value. More...
 
struct  JMATH::JPair< JF1_t, JF2_t >
 Auxiliary data structure for pair of functions. More...
 
struct  JMATH::JAdd< JF1_t, JF2_t >
 forward declaration for negate of function. More...
 
struct  JMATH::JSub< JF1_t, JF2_t >
 forward declaration for addition of fuction. More...
 
struct  JMATH::JMul< JF1_t, JF2_t >
 forward declaration for subtraction of fuction. More...
 
struct  JMATH::JDiv< JF1_t, JF2_t >
 forward declaration for multiplication of fuction. More...
 
struct  JMATH::JFn< JF1_t >
 forward declaration for division of fuction. More...
 
struct  JMATH::JPolynome< ID_t, N >
 Recursive template class for polynomial function. More...
 
struct  JMATH::JPolynome< ID_t, 0 >
 Termination class for polynomial function. More...
 
struct  JMATH::JGauss< ID_t, normalised >
 Gauss function object. More...
 
struct  JMATH::JGauss< ID_t, true >
 Gauss function. More...
 
struct  JMATH::JPow< ID_t, JF1_t >
 Power of function. More...
 
struct  JMATH::JPow< ID_t, _vF >
 Power of x. More...
 
struct  JMATH::JXn< N >
 Fixed power of x. More...
 
struct  JMATH::JSqrt< JF1_t >
 Square root of function. More...
 
struct  JMATH::JSqrt< _vF >
 Square root of x. More...
 
struct  JMATH::JSin< JF1_t >
 Sine of function. More...
 
struct  JMATH::JCos< JF1_t >
 Cosine of function. More...
 
struct  JMATH::JExp< JF1_t >
 Exponent of function. More...
 
struct  JMATH::JExp< JPolynome< ID_t, 0 > >
 Exponent of zero degree polynomial function. More...
 
struct  JMATH::JLog< JF1_t >
 Logarithm of function. More...
 

Namespaces

 JMATH
 Auxiliary classes and methods for mathematical operations.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Typedefs

template<int ID_t>
using JMATH::JP0 = JPolynome< ID_t, 0 >
 short hand for 0th degree polynome More...
 
template<int ID_t>
using JMATH::JP1 = JPolynome< ID_t, 1 >
 short hand for 1st degree polynome More...
 
template<int ID_t>
using JMATH::JP2 = JPolynome< ID_t, 2 >
 short hand for 2nd degree polynome More...
 
template<int ID_t>
using JMATH::JP3 = JPolynome< ID_t, 3 >
 short hand for 3rd degree polynome More...
 

Functions

template<class JF1_t >
size_t JMATH::getNumberOfParameters ()
 Get number of parameters. More...
 
template<class JF1_t >
double JMATH::getParameter (const JF1_t &f1, const size_t i)
 Get value of parameter at given index. More...
 
template<class JF1_t >
void JMATH::setParameters (JF1_t *f1, const double *values)
 Set values of all parameters. More...
 
template<class JF1_t >
JPow< JF1_t::ID, JF1_t > JMATH::Pow (const JF1_t &f1, const double alpha)
 Power of function. More...
 
template<class JF1_t >
JSqrt< JF1_t > JMATH::Sqrt (const JF1_t &f1)
 Square root of function. More...
 
JSqrt JMATH::Sqrt ()
 Square root of x. More...
 
template<class JF1_t >
JSin< JF1_t > JMATH::Sin (const JF1_t &f1)
 Sine of function. More...
 
template<class JF1_t >
JCos< JF1_t > JMATH::Cos (const JF1_t &f1)
 Cosine function. More...
 
template<class JF1_t >
JExp< JF1_t > JMATH::Exp (const JF1_t &f1)
 Exponent of function. More...
 
template<class JF1_t >
JLog< JF1_t > JMATH::Log (const JF1_t &f1)
 Logarithm of function. More...
 

Variables

template<int ID_t>
const parameter_list< JPolynome< ID_t, 0 > > JPolynome< ID_t, 0 >::parameters & JMATH::JPolynome
 Set parameters. More...
 
template<int ID_t>
const parameter_list< JPow< ID_t > > JPow< ID_t >::parameters & JMATH::JPow
 Set parameters. More...
 

Detailed Description

Functional algebra.

Author
mdejong

Definition in file JMathlib.hh.