MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Functions
Math/MatrixFunctions/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 "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 M >
mds::math::getMax (const CMatrixBase< M > &Matrix)
 Maximum value in the matrix.
template<typename R , class M >
mds::math::getMean (const CMatrixBase< M > &Matrix)
 Mean value of matrix elements.
template<typename R , class M >
mds::math::getMin (const CMatrixBase< M > &Matrix)
 Minimum value in the matrix.
template<typename R , class M >
mds::math::getMult (const CMatrixBase< M > &Matrix)
 Returns result of multiplication of all matrix elements.
template<typename R , class M1 , class M2 >
mds::math::getProduct (const CMatrixBase< M1 > &Matrix1, const CMatrixBase< M2 > &Matrix2)
 Inner product of two matrices.
template<typename R , class M1 , class M2 >
mds::math::getSquareError (const CMatrixBase< M1 > &Matrix1, const CMatrixBase< M2 > &Matrix2)
 Normalized mean square error between elements of two matrices - 1/N * sum((m1 - m2)^2).
template<typename R , class M >
mds::math::getSum (const CMatrixBase< M > &Matrix)
 Returns sum of all matrix elements.
template<typename R , class M >
mds::math::getSumOfSquares (const CMatrixBase< M > &Matrix)
 Returns sum of squares of the matrix elements.
template<typename R , class M >
mds::math::getTrace (const CMatrixBase< M > &Matrix)
 Returns trace of the square matrix.
template<typename R , class M >
mds::math::getVariance (const CMatrixBase< M > &Matrix)
 Variance of matrix elements.
template<class M >
std::ostream & mds::math::operator<< (std::ostream &Stream, const CMatrixBase< M > &Matrix)
 Prints the matrix 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: