IT++ Logo
Functions

Functions

std::complex< double > itpp::erf (const std::complex< double > &z)
 Error function for complex argument. More...
 
double itpp::erfinv (double x)
 Inverse of error function. More...
 
double itpp::Qfunc (double x)
 Q-function. More...
 
vec itpp::erf (const vec &x)
 Error function. More...
 
mat itpp::erf (const mat &x)
 Error function. More...
 
cvec itpp::erf (const cvec &x)
 Error function. More...
 
cmat itpp::erf (const cmat &x)
 Error function. More...
 
vec itpp::erfinv (const vec &x)
 Inverse of error function. More...
 
mat itpp::erfinv (const mat &x)
 Inverse of error function. More...
 
vec itpp::erfc (const vec &x)
 Complementary error function. More...
 
mat itpp::erfc (const mat &x)
 Complementary error function. More...
 
vec itpp::Qfunc (const vec &x)
 Q-function. More...
 
mat itpp::Qfunc (const mat &x)
 Q-function. More...
 

Detailed Description

Function Documentation

◆ erf() [1/5]

ITPP_EXPORT std::complex< double > itpp::erf ( const std::complex< double > &  z)

Error function for complex argument.

Author
Adam Piatyszek

This function calculates a well known error function erf(z) for complex z. The implementation is based on unofficial implementation for Octave. Here is a part of the author's note from original sources:

Put together by John Smith john at arrows dot demon dot co dot uk, using ideas by others.

Calculate erf(z) for complex z. Three methods are implemented; which one is used depends on z.

The code includes some hard coded constants that are intended to give about 14 decimal places of accuracy. This is appropriate for 64-bit floating point numbers.

Definition at line 154 of file error.cpp.

References itpp::abs(), std::abs(), itpp::cerf_continued_fraction(), itpp::cerf_rybicki(), and itpp::cerf_series().

Referenced by itpp::erf().

◆ erfinv() [1/3]

ITPP_EXPORT double itpp::erfinv ( double  P)

Inverse of error function.

Definition at line 169 of file error.cpp.

References it_error_if, itpp::log(), and itpp::sign().

Referenced by itpp::erfinv(), and itpp::Rice_Fading_Generator::init_MEDS().

◆ Qfunc() [1/3]

ITPP_EXPORT double itpp::Qfunc ( double  x)

Q-function.

Definition at line 217 of file error.cpp.

References itpp::erfc().

Referenced by itpp::Qfunc().

◆ erf() [2/5]

ITPP_EXPORT vec itpp::erf ( const vec &  x)

Error function.

Definition at line 224 of file error.cpp.

References itpp::erf().

◆ erf() [3/5]

ITPP_EXPORT mat itpp::erf ( const mat &  x)

Error function.

Definition at line 225 of file error.cpp.

References itpp::erf().

◆ erf() [4/5]

ITPP_EXPORT cvec itpp::erf ( const cvec &  x)

Error function.

Definition at line 226 of file error.cpp.

References itpp::erf().

◆ erf() [5/5]

ITPP_EXPORT cmat itpp::erf ( const cmat &  x)

Error function.

Definition at line 230 of file error.cpp.

References itpp::erf().

◆ erfinv() [2/3]

ITPP_EXPORT vec itpp::erfinv ( const vec &  x)

Inverse of error function.

Definition at line 236 of file error.cpp.

References itpp::erfinv().

◆ erfinv() [3/3]

ITPP_EXPORT mat itpp::erfinv ( const mat &  x)

Inverse of error function.

Definition at line 237 of file error.cpp.

References itpp::erfinv().

◆ erfc() [1/2]

ITPP_EXPORT vec itpp::erfc ( const vec &  x)

Complementary error function.

Definition at line 240 of file error.cpp.

References itpp::erfc().

Referenced by itpp::erfc(), and itpp::Qfunc().

◆ erfc() [2/2]

ITPP_EXPORT mat itpp::erfc ( const mat &  x)

Complementary error function.

Definition at line 241 of file error.cpp.

References itpp::erfc().

◆ Qfunc() [2/3]

ITPP_EXPORT vec itpp::Qfunc ( const vec &  x)

Q-function.

Definition at line 244 of file error.cpp.

References itpp::Qfunc().

◆ Qfunc() [3/3]

ITPP_EXPORT mat itpp::Qfunc ( const mat &  x)

Q-function.

Definition at line 245 of file error.cpp.

References itpp::Qfunc().

SourceForge Logo

Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.5