MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Functions
Math/VectorFunctions/mdsGeneral.h File Reference

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

#include <MDSTk/Base/mdsStaticAssert.h>
#include <MDSTk/Math/mdsBase.h>
#include <MDSTk/Math/mdsVectorBase.h>
#include <cmath>
#include <ostream>
#include "mdsGeneral.hxx"

Namespaces

namespace  mds
 

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


namespace  mds::math

Functions

template<typename R , class V1 , class V2 >
mds::math::getError (const CVectorBase< V1 > &Vector1, const CVectorBase< V2 > &Vector2)
 Normalized mean error between two vectors - 1/N * sum(abs(v1 - v2)).
template<typename R , class V >
mds::math::getMax (const CVectorBase< V > &Vector)
 Maximum element in the vector.
template<typename R , class V >
mds::math::getMean (const CVectorBase< V > &Vector)
 Mean of vector elements.
template<typename R , class V >
mds::math::getMin (const CVectorBase< V > &Vector)
 Minimum element in the vector.
template<typename R , class V >
mds::math::getMult (const CVectorBase< V > &Vector)
 Multiplication of all elements in the vector.
template<typename R , class V1 , class V2 >
mds::math::getProd (const CVectorBase< V1 > &Vector1, const CVectorBase< V2 > &Vector2)
 Returns inner product of two vectors.
template<typename R , class V1 , class V2 >
mds::math::getSquareError (const CVectorBase< V1 > &Vector1, const CVectorBase< V2 > &Vector2)
 Normalized mean square error between two vectors - 1/N * sum((v1 - v2)^2).
template<typename R , class V >
mds::math::getSum (const CVectorBase< V > &Vector)
 Sum of elements in the vector.
template<typename R , class V >
mds::math::getSumOfSquares (const CVectorBase< V > &Vector)
 Sum of squares of elements in the vector.
template<typename R , class V >
mds::math::getVariance (const CVectorBase< V > &Vector)
 Variance of vector elements.
template<class V1 , class V2 >
void mds::math::inplaceAdd (CVectorBase< V2 > &R, const CVectorBase< V1 > &A)
 Operation: R += A.
template<typename T , class V1 , class V2 >
void mds::math::inplaceMultAdd (CVectorBase< V2 > &R, const CVectorBase< V1 > &A, const T &b)
 Operation: R += A * b.
template<class V1 , class V2 >
void mds::math::inplaceSub (CVectorBase< V2 > &R, const CVectorBase< V1 > &A)
 Operation: R += A.
template<class V >
std::ostream & mds::math::operator<< (std::ostream &Stream, const CVectorBase< V > &Vector)
 Prints the vector to a given output stream.

Detailed Description

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

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2006/02/15

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

Description: