ANIMA  4.0
animaErrorFunctions.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "AnimaSpecialFunctionsExport.h"
4 
5 namespace anima
6 {
7 
9 {
10 public:
11  void SetXValue(double val) {m_XValue = val;}
12 
13  double operator() (const double t)
14  {
15  double inexpValue = m_XValue * m_XValue * (t * t - 1.0);
16  return std::exp(inexpValue);
17  }
18 
19 private:
20  double m_XValue;
21 };
22 
23 ANIMASPECIALFUNCTIONS_EXPORT double EvaluateDawsonIntegral(const double x, const bool scaled = false);
24 
25 ANIMASPECIALFUNCTIONS_EXPORT double EvaluateDawsonFunctionNR(double x);
26 
27 ANIMASPECIALFUNCTIONS_EXPORT double EvaluateDawsonFunction(double x);
28 
29 ANIMASPECIALFUNCTIONS_EXPORT double EvaluateWImFunction(double x);
30 
31 ANIMASPECIALFUNCTIONS_EXPORT double EvaluateWImY100Function(double y100, double x);
32 
33 } // end namespace anima
void SetXValue(double val)
double operator()(const double t)
double EvaluateDawsonFunction(double x)
compute Dawson(x) = sqrt(pi)/2 * exp(-x^2) * erfi(x)
double EvaluateWImFunction(double x)
double EvaluateWImY100Function(double y100, double x)
double EvaluateDawsonIntegral(const double x, const bool scaled)
double EvaluateDawsonFunctionNR(double x)
Numerical recipes implementation of Dawson integral.