#include <cmath>
#include <itpp/base/vec.h>
#include <itpp/base/mat.h>
#include <itpp/base/elmatfunc.h>
#include <itpp/base/matfunc.h>
Go to the source code of this file.
Namespaces | |
namespace | itpp |
Classes | |
class | itpp::Stat |
A class for sampling a signal and calculating statistics. More... | |
Functions | |
template<class T> | |
T | max (const Vec< T > &v) |
Maximum value of vector. | |
template<class T> | |
T | max (const Vec< T > &v, int &index) |
Maximum value of vector, also returns the index position of max value. | |
template<class T> | |
Vec< T > | max (const Mat< T > &m, int dim=1) |
template<class T> | |
Vec< T > | max (const Mat< T > &m, ivec &index, int dim=1) |
template<class T> | |
T | min (const Vec< T > &in) |
Minimum value of vector. | |
template<class T> | |
T | min (const Vec< T > &in, int &index) |
Minimum value of vector, also returns the index position of min value. | |
template<class T> | |
Vec< T > | min (const Mat< T > &m, int dim=1) |
template<class T> | |
Vec< T > | min (const Mat< T > &m, ivec &index, int dim=1) |
template<class T> | |
int | max_index (const Vec< T > &in) |
Return the postion of the maximum element in the vector. | |
template<class T> | |
void | max_index (const Mat< T > &m, int &row, int &col) |
Return the postion of the maximum element in the matrix. | |
template<class T> | |
int | min_index (const Vec< T > &in) |
Return the postion of the minimum element in the vector. | |
template<class T> | |
void | min_index (const Mat< T > &m, int &row, int &col) |
Return the postion of the minimum element in the matrix. | |
template<class T> | |
double | geometric_mean (const Vec< T > &v) |
The geometric mean value. | |
template<class T> | |
double | median (const Vec< T > &v) |
The median. | |
template<class T> | |
double | norm (const Vec< T > &v) |
Calculate the 2-norm: norm(v)=sqrt(sum(abs(v).^2)). | |
template<class T> | |
double | norm (const Vec< T > &v, int p) |
Calculate the p-norm: norm(v,p)=sum(abs(v).^2)^(1/p). | |
template<class T> | |
double | norm (const Vec< T > &v, const std::string &s) |
Calculate the frobeniuos norm for s = "fro" (equal to 2-norm). | |
template<class T> | |
double | variance (const Vec< T > &v) |
The variance of the elements in the vector. Normalized with N-1 to be unbiased. | |
template<class T> | |
double | energy (const Vec< T > &v) |
Calculate the energy: squared 2-norm. energy(v)=sum(abs(v).^2). | |
bool | within_tolerance (double x, double xref, double tol=1e-14) |
Return true if the input value x is within the tolerance tol of the reference value xref . | |
bool | within_tolerance (std::complex< double > x, std::complex< double > xref, double tol=1e-14) |
Return true if the input value x is within the tolerance tol of the reference value xref . | |
bool | within_tolerance (const vec &x, const vec &xref, double tol=1e-14) |
Return true if the input vector x is elementwise within the tolerance tol of the reference vector xref . | |
bool | within_tolerance (const cvec &x, const cvec &xref, double tol=1e-14) |
Return true if the input vector x is elementwise within the tolerance tol of the reference vector xref . | |
bool | within_tolerance (const mat &X, const mat &Xref, double tol=1e-14) |
Return true if the input matrix X is elementwise within the tolerance tol of the reference matrix Xref . | |
bool | within_tolerance (const cmat &X, const cmat &Xref, double tol=1e-14) |
Return true if the input matrix X is elementwise within the tolerance tol of the reference matrix Xref . | |
double | kurtosis (const vec &x) |
Calculate the kurtosis of the input vector x. |
-------------------------------------------------------------------------
IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions
Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-------------------------------------------------------------------------
Definition in file stat.h.
Generated on Fri Jan 11 08:51:39 2008 for IT++ by Doxygen 1.3.9.1