MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Classes | Namespaces | Typedefs | Functions
mdsComplex.h File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2010 by Michal Spanel
. More...

#include "mdsBase.h"
#include <cmath>
#include <complex>
#include <iostream>

Classes

class  mds::math::CComplex< T >
 Class representing a complex number. More...

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::math

Typedefs

typedef CComplex< double > mds::math::CDComplex
 Double complex number.
typedef CComplex< float > mds::math::CFComplex
 Float complex number.
typedef CDComplex mds::math::tDComplex
 Double complex number.
typedef CFComplex mds::math::tFComplex
 Float complex number.

Functions

template<typename T >
void mds::math::cut (CComplex< T > &x, const CComplex< T > &a, const CComplex< T > &b, const CComplex< T > &n)
 Function remains values in the range <a, b> unchanged, othervise a new value n is assigned.
template<typename T >
mds::math::getAbs (const CComplex< T > &z)
 Returns absolute value (magnitude) of the complex number.
template<typename T >
mds::math::getArg (const CComplex< T > &z)
 Returns argument (phase) of the complex number.
template<typename T >
CComplex< T > mds::math::getConj (const CComplex< T > &z)
 Returns complex conjugate number.
template<typename T >
CComplex< T > mds::math::getCos (const CComplex< T > &z)
 Returns cosine of the complex number.
template<typename T >
CComplex< T > mds::math::getCosh (const CComplex< T > &z)
 Returns hyperbolic cosine of the complex number.
template<typename T >
CComplex< T > mds::math::getExp (const CComplex< T > &z)
 Returns exponential of the complex number.
template<typename T >
mds::math::getImag (const CComplex< T > &z)
 Returns m_imaginary part of a complex number.
template<typename T >
CComplex< T > mds::math::getLog (const CComplex< T > &z)
 Returns natural logarithm with base e of the complex number.
template<typename T >
CComplex< T > mds::math::getLog10 (const CComplex< T > &z)
 Returns logarithm with base 10 of the complex number.
template<typename T >
CComplex< T > mds::math::getMax (const CComplex< T > &a, const CComplex< T > &b)
 Function returns maximum of two values.
template<typename T >
CComplex< T > mds::math::getMin (const CComplex< T > &a, const CComplex< T > &b)
 Function returns minimum of two values.
template<typename T >
mds::math::getNorm (const CComplex< T > &z)
 Returns squared absolute value of the complex number.
template<typename T >
CComplex< T > mds::math::getPow (const CComplex< T > &x, const CComplex< T > &y)
 Returns complex power.
template<typename T >
CComplex< T > mds::math::getPow (const CComplex< T > &x, const T &y)
 Returns complex power.
template<typename T >
CComplex< T > mds::math::getPow (const T &x, const CComplex< T > &y)
 Returns complex power.
template<typename T >
CComplex< T > mds::math::getPow (const CComplex< T > &x, int y)
 Returns complex power of a complex number.
template<typename T >
mds::math::getReal (const CComplex< T > &z)
 Returns real part of a complex number.
template<typename T >
CComplex< T > mds::math::getSin (const CComplex< T > &z)
 Returns sine of a complex number.
template<typename T >
CComplex< T > mds::math::getSinh (const CComplex< T > &z)
 Returns hyperbolic sine of a complex number.
template<typename T >
CComplex< T > mds::math::getSqrt (const CComplex< T > &z)
 Returns square root of the complex number.
template<typename T >
CComplex< T > mds::math::getTan (const CComplex< T > &z)
 Returns tangent of a complex number.
template<typename T >
CComplex< T > mds::math::getTanh (const CComplex< T > &z)
 Returns hyperbolic tangent of a complex number.
template<typename T >
void mds::math::limit (CComplex< T > &x, const CComplex< T > &a, const CComplex< T > &b)
 Function limits value x into the interval <a, b>.
template<typename T >
bool mds::math::operator!= (const CComplex< T > &x, const CComplex< T > &y)
template<typename T >
bool mds::math::operator!= (const CComplex< T > &x, const T &y)
template<typename T >
bool mds::math::operator!= (const T &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator* (const CComplex< T > &x, const CComplex< T > &y)
template<typename T , typename U >
CComplex< T > mds::math::operator* (const CComplex< T > &x, const U &y)
template<typename T , typename U >
CComplex< T > mds::math::operator* (const U &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator+ (const CComplex< T > &x, const CComplex< T > &y)
template<typename T , typename U >
CComplex< T > mds::math::operator+ (const CComplex< T > &x, const U &y)
template<typename T , typename U >
CComplex< T > mds::math::operator+ (const U &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator+ (const CComplex< T > &x)
template<typename T >
CComplex< T > mds::math::operator- (const CComplex< T > &x, const CComplex< T > &y)
template<typename T , typename U >
CComplex< T > mds::math::operator- (const CComplex< T > &x, const U &y)
template<typename T , typename U >
CComplex< T > mds::math::operator- (const U &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator- (const CComplex< T > &x)
template<typename T >
CComplex< T > mds::math::operator/ (const CComplex< T > &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator/ (const T &x, const CComplex< T > &y)
template<typename T >
CComplex< T > mds::math::operator/ (const CComplex< T > &x, const T &y)
template<typename T >
std::ostream & mds::math::operator<< (std::ostream &Stream, const CComplex< T > &z)
 Writes complex number to an output stm_ream.
template<typename T >
bool mds::math::operator== (const CComplex< T > &x, const CComplex< T > &y)
template<typename T >
bool mds::math::operator== (const CComplex< T > &x, const T &y)
template<typename T >
bool mds::math::operator== (const T &x, const CComplex< T > &y)
template<typename T >
std::istream & mds::math::operator>> (std::istream &Stream, CComplex< T > &z)
 Reads complex number from an input stream.
template<typename T >
CComplex< T > mds::math::polar (const T &x)
 Creates a temporary complex number from polar coordinates.
template<typename T >
CComplex< T > mds::math::polar (const T &x, const T &y)
 Creates a temporary complex number from polar coordinates.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2010 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2006/04/20

Id:
mdsComplex.h 2049 2012-01-09 13:04:08Z spanel

Description: