n2 = mdndist2(mixparams, t)
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, j
th entry is the
squared distance from the i
th row of x
to the j
th
centre in the i
th row of mixparams.centres
.
mdnfwd
, mdnprob
Copyright (c) Ian T Nabney (1996-9)
David J Evans (1998)