mdndist2

Purpose

Calculates squared distance between centres of Gaussian kernels and data

Synopsis

n2 = mdndist2(mixparams, t)

Description

n2 = mdndist2(mixparams, t) takes takes the centres of the Gaussian contained in mixparams and the target data matrix, t, and computes the squared Euclidean distance between them. If t has m rows and n columns, then the centres field in the mixparams structure should have m rows and n*mixparams.ncentres columns: the centres in each row relate to the corresponding row in t. The result has m rows and mixparams.ncentres columns. The i, jth entry is the squared distance from the ith row of x to the jth centre in the ith row of mixparams.centres.

See Also

mdnfwd, mdnprob
Pages: Index

Copyright (c) Ian T Nabney (1996-9)

David J Evans (1998)