|  | aimsdata
    5.1.2
    Neuroimaging data handling | 
#include <aims/config/aimsdata_config.h>#include <cartobase/type/converter.h>#include <cstdlib>#include <cmath>#include <algorithm>#include <vector>#include <map>#include <limits>

Go to the source code of this file.
| Classes | |
| class | aims::MathUtil< T > | 
| Defines basic math functions that run on iterators.  More... | |
| Namespaces | |
| aims | |
| The class for EcatSino data write operation. | |
| aims::internal | |
| Functions | |
| template<typename T > | |
| bool | aims::internal::is_min (T a, T b) | 
| Square, cube, ... | |
| template<typename T > | |
| T | aims::sqr (const T &x) | 
| Get the square of x.  More... | |
| template<typename T > | |
| T | aims::cub (const T &x) | 
| Get the cube of x.  More... | |
| template<typename T > | |
| float | aims::sgn (const T &x) | 
| Get the sign of x.  More... | |
| template<typename T > | |
| T | aims::absdiff (const T &x, const T &y) | 
| Get the absolute difference between 2 values without having to take care of used type this is particularly useful for unsigned types.  More... | |
| Trigonometry | |
| template<class T > | |
| double | AimsArgument (T re, T im) | 
| Get the argument of a complex re + i.im.  More... | |
| template<class T > | |
| T | square (const T &val) | 
| template<class T > | |
| T | cube (const T &val) | 
| template<class T > | |
| T | pythagore (const T &a, const T &b) | 
| Miscellaneous functions | |
| AIMSDATA_API int | AimsNextPowerOfTwo (int number) | 
| Return the next power of two closest to an integer.  More... | |
| AIMSDATA_API double | AimsSigmoid (double x) | 
| Sigmoidal function (useful for neural networks)  More... | |
| 
 | inline | 
Get the argument of a complex re + i.im.
Definition at line 351 of file mathelem.h.
| AIMSDATA_API int AimsNextPowerOfTwo | ( | int | number | ) | 
Return the next power of two closest to an integer.
| AIMSDATA_API double AimsSigmoid | ( | double | x | ) | 
Sigmoidal function (useful for neural networks)
| 
 | inline | 
Definition at line 379 of file mathelem.h.
Referenced by volumeRatio().
| 
 | inline | 
Definition at line 386 of file mathelem.h.
References square().
| 
 | inline | 
Definition at line 372 of file mathelem.h.
Referenced by pythagore().