Generated by DocFX

Class SquareMahalanobis

Squared Mahalanobis distance.

Inheritance
System.Object
BaseMahalanobis
SquareMahalanobis
Implements
IMetric<System.Double[]>
IDistance<System.Double[]>
IDistance<System.Double[], System.Double[]>
ICloneable
Inherited Members
BaseMahalanobis.Distance(Double[], Double[])
BaseMahalanobis.Clone()
Namespace: ISynergy.Framework.Mathematics.Distances
Assembly: ISynergy.Framework.Mathematics.dll
Syntax
public class SquareMahalanobis : BaseMahalanobis, IMetric<double[]>, IDistance<double[]>, IDistance<double[], double[]>

Constructors

View Source

SquareMahalanobis()

Default constructor.

Declaration
public SquareMahalanobis()
View Source

SquareMahalanobis(CholeskyDecomposition)

Initializes a new instance of the Mahalanobis class.

Declaration
public SquareMahalanobis(CholeskyDecomposition chol)
Parameters
Type Name Description
CholeskyDecomposition chol

A Cholesky decomposition of the covariance matrix.

View Source

SquareMahalanobis(SingularValueDecomposition)

Initializes a new instance of the Mahalanobis class.

Declaration
public SquareMahalanobis(SingularValueDecomposition svd)
Parameters
Type Name Description
SingularValueDecomposition svd

A Singular Value decomposition of the covariance matrix.

View Source

SquareMahalanobis(Double[,])

Initializes a new instance of the Mahalanobis class.

Declaration
public SquareMahalanobis(double[, ] precision)
Parameters
Type Name Description
System.Double[,] precision

The precision matrix (the inverse of the covariance matrix).

Methods

View Source

FromCovarianceMatrix(Double[,])

Creates a new Square-Mahalanobis distance from a covariance matrix.

Declaration
public static SquareMahalanobis FromCovarianceMatrix(double[, ] covariance)
Parameters
Type Name Description
System.Double[,] covariance

A covariance matrix.

Returns
Type Description
SquareMahalanobis

A square Mahalanobis distance using the SingularValueDecomposition of the given covariance matrix.

View Source

FromPrecisionMatrix(Double[,])

Creates a new Square-Mahalanobis distance from a precision matrix.

Declaration
public static SquareMahalanobis FromPrecisionMatrix(double[, ] precision)
Parameters
Type Name Description
System.Double[,] precision

A precision matrix.

Returns
Type Description
SquareMahalanobis

A square Mahalanobis distance using the given precision matrix.

Implements

IMetric<T>
IDistance<T>
IDistance<T, U>
ICloneable

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)