SMILX  1.01
Static Public Member Functions | List of all members
milx::Math< Type > Class Template Reference

A general math object for computing common operations such a centroids etc. More...

#include <milxMath.h>

Static Public Member Functions

static Type Centroid (const vnl_vector< Type > &data)
 Compute the centroid (or the mean) of a data vector. More...
 
static vnl_vector< Type > Centroid (const vnl_matrix< Type > &data)
 Compute the centroid (or the mean vector) of a data matrix. More...
 
static Type CentroidSize (const vnl_matrix< Type > &data, const vnl_vector< Type > &centroid, bool norm=false)
 Compute the centroid size or scale for a series of points. More...
 
static vnl_vector< Type > Centroid (vtkPoints *points)
 Compute the centroid (or the mean vector) of a data matrix. More...
 
static Type CentroidSize (vtkPoints *points, const vnl_vector< Type > &centroid, bool norm=false)
 Compute the centroid size or scale for a series of points. More...
 
static vnl_matrix< Type > CovarianceMatrix (vnl_vector< Type > sourceVector)
 Compute the covariance matrix from a vector. EXPERIMENTAL. More...
 
static vnl_matrix< Type > CovarianceMatrix (vnl_vector< Type > sourceVector, vnl_vector< Type > targetVector)
 Compute the covariance matrix between two vectors. EXPERIMENTAL. More...
 
static vnl_matrix< Type > CovarianceMatrix (const vnl_matrix< Type > &data, const vnl_vector< Type > &centroid)
 Compute the covariance matrix from a datamatrix. More...
 
static vnl_matrix< Type > CovarianceMatrix (const vnl_matrix< Type > &data)
 Compute the covariance matrix from a datamatrix. More...
 
static vnl_matrix< Type > CovarianceMatrix (vtkPoints *points, const vnl_vector< Type > &centroid)
 Compute the covariance matrix from a datamatrix. More...
 
static Type MahalanobisDistance (const vnl_vector< Type > &source, const vnl_vector< Type > &target)
 Compute the Mahalanobis distance between two vectors with an unknown covariance matrix. EXPERIMENTAL. More...
 
static Type MahalanobisDistance (const vnl_vector< Type > &target, const vnl_vector< Type > &mean, const vnl_matrix< Type > &invCovMatrix)
 Compute the Mahalanobis distance of a vector to a population. EXPERIMENTAL. More...
 
static Type MahalanobisDistance (const vnl_vector< Type > &target, const vnl_vector< Type > &mean, const vnl_matrix< Type > &covMatrix, vnl_matrix< Type > &invCovMatrix)
 Compute the Mahalanobis distance of a vector to a population. EXPERIMENTAL. More...
 
static Type MeanSquaredError (vtkPoints *sourcePoints, vtkPoints *targetPoints)
 Compute the MSE of the given points sets. More...
 

Detailed Description

template<class Type = double>
class milx::Math< Type >

A general math object for computing common operations such a centroids etc.

Definition at line 44 of file milxMath.h.


The documentation for this class was generated from the following file: