Jpp
15.0.1-rc.1-highQE
the software that should make you happy
|
Auxiliary classes and methods for mathematical operations. More...
Classes | |
struct | JAverage< JQuaternion3D > |
Template spacialisation for averaging quaternions. More... | |
struct | JLegendre< JQuaternion3D,(size_t)-1 > |
Template specialisation for function evaluation of Legendre polynome of quaternions for undefined number of degrees. More... | |
struct | JLegendre< JQuaternion3D, N > |
Template specialisation for function evaluation of Legendre polynome of quaternions for defined number of degrees. More... | |
struct | JCalculator |
Auxiliary class for arithmetic operations on objects. More... | |
struct | JGauss_t |
Gauss model. More... | |
struct | JGauss |
Gauss function object. More... | |
struct | JLegendre_t |
Base class for Legendre polynome. More... | |
struct | JLegendre |
Template definition for function evaluation of Legendre polynome. More... | |
struct | JLegendre< JOrdinate_t,(size_t)-1 > |
Template specialisation for function evaluation of of Legendre polynome for undefined number of degrees. More... | |
struct | JLimits |
Auxiliary class for minimum and maximum values for any class. More... | |
struct | JLimits< T, true > |
Template spacialisation of JMATH::JLimits for numerical values. More... | |
struct | JLimits< T, false > |
Template spacialisation of JMATH::JRandom for other data types. More... | |
struct | JMath_t |
Auxiliary class to hide data type specific methods. More... | |
struct | JMath |
Auxiliary base class for aritmetic operations of derived class types. More... | |
struct | JMath< T, JNullType > |
Template base class for data structures with arithmetic capabilities. More... | |
struct | JAverage |
Auxiliary class to determine average of set of values. More... | |
class | JMatrix1D |
1 x 1 matrix More... | |
class | JMatrix1S |
1 x 1 symmetric matrix More... | |
class | JMatrix2D |
2 x 2 matrix More... | |
class | JMatrix2S |
2 x 2 symmetric matrix More... | |
class | JMatrix3D |
3 x 3 matrix More... | |
class | JMatrix3S |
3 x 3 symmetric matrix More... | |
class | JMatrix4D |
4 x 4 matrix More... | |
class | JMatrix4S |
4 x 4 symmetric matrix More... | |
class | JMatrix5D |
5 x 5 matrix More... | |
class | JMatrix5S |
5 x 5 symmetric matrix More... | |
struct | JMatrixND_t |
Basic NxN matrix. More... | |
struct | JMatrixND |
NxN matrix. More... | |
struct | JMatrixNS |
N x N symmetric matrix. More... | |
struct | JModel_t |
Fit model. More... | |
struct | JNumber |
Simple wrapper around template data type to ensure that zero is the default value. More... | |
struct | JPolynome_t |
Polynome model. More... | |
struct | JPolynome |
Polynome function object. More... | |
class | JPower |
Power law function object. More... | |
struct | JRandom |
Template definition of random value generator. More... | |
struct | JRandom< T, true > |
Template spacialisation of JMATH::JRandom for numerical values. More... | |
struct | JRandom< T, false > |
Template spacialisation of JMATH::JRandom for non-numerical data types. More... | |
class | JTrigonometric |
Trigonometric function object for sin and cos . More... | |
struct | JVectorND |
Nx1 matrix. More... | |
struct | JZero |
Auxiliary class to assign zero value. More... | |
Functions | |
template<class T > | |
const JCalculator< T, 1 > & | operator* (const T &first, const T &second) |
Product evaluation of objects. More... | |
template<class T , int N> | |
const JCalculator< T, N+1 > & | operator* (const T &first, const JCalculator< T, N > &second) |
Recursive product evaluation of objects. More... | |
template<class T , int N> | |
const JCalculator< T, N+1 > & | operator* (const JCalculator< T, N > &first, const T &second) |
Recursive product evaluation of objects. More... | |
template<class T > | |
T | pow (const T &x, const double y) |
Power ![]() | |
template<class T > | |
T | interpolate (const T &first, const T &second, const double alpha) |
Interpolation between objects. More... | |
template<class T > | |
std::iterator_traits< T > ::value_type | getAverage (T __begin, T __end) |
Get average. More... | |
template<class JValue_t , size_t N> | |
JValue_t | getAverage (const JValue_t(&array)[N]) |
Get average. More... | |
template<class JElement_t , class JAllocator_t > | |
JElement_t | getAverage (const array_type< JElement_t, JAllocator_t > &buffer) |
Get average. More... | |
template<class T > | |
std::iterator_traits< T > ::value_type | getAverage (T __begin, T __end, typename std::iterator_traits< T >::value_type value) |
Get average. More... | |
template<class JValue_t , size_t N> | |
JValue_t | getAverage (const JValue_t(&array)[N], typename JLANG::JClass< JValue_t >::argument_type value) |
Get average. More... | |
template<class JElement_t , class JAllocator_t > | |
JElement_t | getAverage (const array_type< JElement_t, JAllocator_t > &buffer, typename JLANG::JClass< JElement_t >::argument_type value) |
Get average. More... | |
double | gauss (const double x, const double sigma) |
Gauss function (normalised to 1 at x = 0). More... | |
double | gauss (const double x, const double x0, const double sigma) |
Gauss function (normalised to 1 at x = x0). More... | |
double | Gauss (const double x, const double sigma) |
Normalised Gauss function. More... | |
double | Gauss (const double x, const double x0, const double sigma) |
Normalised Gauss function. More... | |
double | Gamma (const double a, const double x) |
Incomplete gamma function. More... | |
double | legendre (const unsigned int n, const double x) |
Legendre polynome. More... | |
double | binomial (const int n, const int k) |
Binomial function. More... | |
void | randomize (JMatrix1S *p) |
Randomize matrix. More... | |
void | randomize (JMatrix2S *p) |
Randomize matrix. More... | |
void | randomize (JMatrix3S *p) |
Randomize matrix. More... | |
void | randomize (JMatrix4S *p) |
Randomize matrix. More... | |
void | randomize (JMatrix5S *p) |
Randomize matrix. More... | |
long long int | factorial (const long long int n) |
Determine factorial. More... | |
long long int | factorial (const long long int n, const long long int m) |
Determine combinatorics. More... | |
template<class JFirst_t , class JSecond_t > | |
bool | equals (const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min()) |
Check equality. More... | |
template<class JFirst_t , class JSecond_t > | |
double | getDistanceSquared (const JFirst_t &first, const JSecond_t &second) |
Get square of distance between objects. More... | |
template<class JFirst_t , class JSecond_t > | |
double | getDistance (const JFirst_t &first, const JSecond_t &second) |
Get distance between objects. More... | |
template<class JFirst_t , class JSecond_t > | |
double | getDot (const JFirst_t &first, const JSecond_t &second) |
Get dot product of objects. More... | |
template<class JFirst_t , class JSecond_t > | |
double | getAngle (const JFirst_t &first, const JSecond_t &second) |
Get space angle between objects. More... | |
template<class JFirst_t , class JSecond_t > | |
double | getPerpDot (const JFirst_t &first, const JSecond_t &second) |
Get perpendicular dot product of objects. More... | |
template<class T > | |
T | getCross (const T &first, const T &second) |
Get cross product of objects. More... | |
template<class T > | |
std::vector< T > | convolve (const std::vector< T > &input, const std::vector< T > &kernel) |
Convolute data with given kernel. More... | |
template<class T > | |
T | getRandom () |
Get random value. More... | |
template<class T > | |
T | getRandom (const T min, const T max) |
Get uniformly distributed random value between given limits. More... | |
template<class T > | |
T | getRandom (const T min, const T max, const T precision) |
Get uniformly distributed random value between given limits. More... | |
template<> | |
double | getRandom (const double min, const double max, const double precision) |
Template specialisation for data type double . More... | |
template<class T > | |
T | getZero () |
Get zero value for a given data type. More... | |
template<> | |
bool | getZero< bool > () |
Get zero value for bool . More... | |
template<> | |
float | getZero< float > () |
Get zero value for float . More... | |
template<> | |
double | getZero< double > () |
Get zero value for double . More... | |
template<> | |
long double | getZero< long double > () |
Get zero value for long double . More... | |
Variables | |
static const double | PI = acos(-1.0) |
Mathematical constants. More... | |
static const double | EULER = 0.577215664901533 |
Euler number. More... | |
static const long long int | KILOBYTE = 1024 |
Computing quantities. More... | |
static const long long int | MEGABYTE = KILOBYTE*KILOBYTE |
Number of bytes in a kilo-byte. More... | |
static const long long int | GIGABYTE = MEGABYTE*KILOBYTE |
Number of bytes in a mega-byte. More... | |
static const JZero | zero |
Function object to assign zero value. More... | |
Auxiliary classes and methods for mathematical operations.
|
inline |
Product evaluation of objects.
Multiply objects.
first | first object |
second | second object |
Definition at line 53 of file JCalculator.hh.
|
inline |
Recursive product evaluation of objects.
first | first object |
second | second object |
Definition at line 69 of file JCalculator.hh.
|
inline |
Recursive product evaluation of objects.
first | first object |
second | second object |
Definition at line 85 of file JCalculator.hh.
Power .
x | value |
y | power |
Definition at line 98 of file JMath.hh.
|
inline |
Interpolation between objects.
The result is equal to result = (1 - alpha) * (first) + (alpha) * (second)
.
first | first object |
second | second object |
alpha | interpolation factor [0, 1] |
Definition at line 400 of file JMath.hh.
|
inline |
JElement_t JMATH::getAverage | ( | const array_type< JElement_t, JAllocator_t > & | buffer | ) |
std::iterator_traits<T>::value_type JMATH::getAverage | ( | T | __begin, |
T | __end, | ||
typename std::iterator_traits< T >::value_type | value | ||
) |
Get average.
__begin | begin of data |
__end | end of data |
value | default value |
Definition at line 542 of file JMath.hh.
|
inline |
Get average.
array | c-array of values |
value | default value |
Definition at line 561 of file JMath.hh.
JElement_t JMATH::getAverage | ( | const array_type< JElement_t, JAllocator_t > & | buffer, |
typename JLANG::JClass< JElement_t >::argument_type | value | ||
) |
Get average.
buffer | input data |
value | default value |
Definition at line 580 of file JMath.hh.
|
inline |
Gauss function (normalised to 1 at x = 0).
x | x |
sigma | sigma |
Definition at line 33 of file JMath/JMathSupportkit.hh.
|
inline |
Gauss function (normalised to 1 at x = x0).
x | x |
x0 | central value |
sigma | sigma |
Definition at line 52 of file JMath/JMathSupportkit.hh.
|
inline |
Normalised Gauss function.
x | x |
sigma | sigma |
Definition at line 65 of file JMath/JMathSupportkit.hh.
|
inline |
Normalised Gauss function.
x | x |
x0 | central value |
sigma | sigma |
Definition at line 79 of file JMath/JMathSupportkit.hh.
|
inline |
Incomplete gamma function.
a | a |
x | x |
Definition at line 92 of file JMath/JMathSupportkit.hh.
|
inline |
Legendre polynome.
n | degree |
x | x |
Definition at line 173 of file JMath/JMathSupportkit.hh.
|
inline |
Binomial function.
n | n |
k | k |
Definition at line 208 of file JMath/JMathSupportkit.hh.
|
inline |
Randomize matrix.
p | pointer to valid object |
Definition at line 29 of file JMathTestkit.hh.
|
inline |
Randomize matrix.
p | pointer to valid object |
Definition at line 40 of file JMathTestkit.hh.
|
inline |
Randomize matrix.
p | pointer to valid object |
Definition at line 54 of file JMathTestkit.hh.
|
inline |
Randomize matrix.
p | pointer to valid object |
Definition at line 71 of file JMathTestkit.hh.
|
inline |
Randomize matrix.
p | pointer to valid object |
Definition at line 92 of file JMathTestkit.hh.
|
inline |
Determine factorial.
n | number |
Definition at line 42 of file JMathToolkit.hh.
|
inline |
Determine combinatorics.
n | number |
m | number |
Definition at line 62 of file JMathToolkit.hh.
|
inline |
Check equality.
first | first object |
second | second object |
precision | precision |
Definition at line 86 of file JMathToolkit.hh.
|
inline |
Get square of distance between objects.
first | first object |
second | second object |
Definition at line 102 of file JMathToolkit.hh.
|
inline |
Get distance between objects.
first | first object |
second | second object |
Definition at line 117 of file JMathToolkit.hh.
|
inline |
Get dot product of objects.
first | first object |
second | second object |
Definition at line 132 of file JMathToolkit.hh.
|
inline |
Get space angle between objects.
first | first object |
second | second object |
Definition at line 147 of file JMathToolkit.hh.
|
inline |
Get perpendicular dot product of objects.
first | first object |
second | second object |
Definition at line 169 of file JMathToolkit.hh.
Get cross product of objects.
first | first object |
second | second object |
Definition at line 184 of file JMathToolkit.hh.
|
inline |
Convolute data with given kernel.
input | input data |
kernel | convolution kernel |
Definition at line 199 of file JMathToolkit.hh.
|
inline |
Get uniformly distributed random value between given limits.
min | minimal value |
max | maximal value |
Definition at line 127 of file JRandom.hh.
Get uniformly distributed random value between given limits.
min | minimal value |
max | maximal value |
precision | precision |
Definition at line 143 of file JRandom.hh.
|
inline |
Template specialisation for data type double
.
Definition at line 155 of file JRandom.hh.
|
inline |
Get zero value for a given data type.
The default implementation of this method returns an object which is created with the default constructor. This method should be specialised if this value does not correspond to the equivalent of a zero result.
Definition at line 26 of file JZero.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
Euler number.
Definition at line 21 of file JMath/JConstants.hh.
|
static |
Computing quantities.
Definition at line 26 of file JMath/JConstants.hh.
Number of bytes in a kilo-byte.
Definition at line 27 of file JMath/JConstants.hh.
Number of bytes in a mega-byte.
Definition at line 28 of file JMath/JConstants.hh.