|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Defines a random number type. More...
Defines a random number type.
Definition in file randomT.hpp.
Go to the source code of this file.
Classes | |
| class | mx::math::randomT< typeT, _ranengT, _randistT > |
| A random number type, which functions like any other arithmetic type. More... | |
| class | mx::math::laplace_distribution< _RealType > |
| The Laplace (double exponential) continuous distribution for random numbers. More... | |
| struct | mx::math::laplace_distribution< _RealType >::param_type |
Namespaces | |
| namespace | mx |
| The mxlib c++ namespace. | |
Functions | |
| template<typename _RealType > | |
| bool | mx::math::operator== (const laplace_distribution< _RealType > &__d1, const laplace_distribution< _RealType > &__d2) |
| Return true if two exponential distributions have the same parameters. | |
| template<typename _RealType > | |
| bool | mx::math::operator!= (const laplace_distribution< _RealType > &__d1, const laplace_distribution< _RealType > &__d2) |
| Return true if two exponential distributions have different parameters. | |
| template<typename _RealType , typename _CharT , typename _Traits > | |
| std::basic_ostream< _CharT, _Traits > & | mx::math::operator<< (std::basic_ostream< _CharT, _Traits > &, const laplace_distribution< _RealType > &) |
Inserts a laplace_distribution random number distribution __x into the output stream __os. | |
| template<typename _RealType , typename _CharT , typename _Traits > | |
| std::basic_istream< _CharT, _Traits > & | mx::math::operator>> (std::basic_istream< _CharT, _Traits > &, laplace_distribution< _RealType > &) |
Extracts a laplace_distribution random number distribution __x from the input stream __is. | |
| bool mx::math::operator!= | ( | const laplace_distribution< _RealType > & | __d1, |
| const laplace_distribution< _RealType > & | __d2 | ||
| ) |
Return true if two exponential distributions have different parameters.
Definition at line 281 of file randomT.hpp.
References mx::math::operator!=(), and mx::math::six_fifths().
Referenced by mx::math::operator!=().
| std::basic_ostream< _CharT, _Traits > & mx::math::operator<< | ( | std::basic_ostream< _CharT, _Traits > & | , |
| const laplace_distribution< _RealType > & | |||
| ) |
Inserts a laplace_distribution random number distribution __x into the output stream __os.
| __os | An output stream. |
| __x | A laplace_distribution random number distribution. |
__x inserted or in an error state. | bool mx::math::operator== | ( | const laplace_distribution< _RealType > & | __d1, |
| const laplace_distribution< _RealType > & | __d2 | ||
| ) |
Return true if two exponential distributions have the same parameters.
Definition at line 271 of file randomT.hpp.
References mx::math::operator==(), and mx::math::six_fifths().
Referenced by mx::math::operator==().
| std::basic_istream< _CharT, _Traits > & mx::math::operator>> | ( | std::basic_istream< _CharT, _Traits > & | , |
| laplace_distribution< _RealType > & | |||
| ) |
Extracts a laplace_distribution random number distribution __x from the input stream __is.
| __is | An input stream. |
| __x | A laplace_distribution random number generator engine. |
__x extracted or in an error state. References mx::math::operator>>().
Referenced by mx::math::operator>>().