## "Fossies" - the Fresh Open Source Software Archive

### Source code changes of the file "Libtmp/Slatec/Gaussian.pm" betweenPDL-2.082.tar.gz and PDL-2.083.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

Gaussian.pm  (PDL-2.082):Gaussian.pm  (PDL-2.083)
PDL::Gaussian -- Gaussian distributions. PDL::Gaussian -- Gaussian distributions.
\$x = ([3],[5]); \$x = PDL::Gaussian->new([3],[5]);
\$x->set_covariance(...) \$x->set_covariance(...)
This package provides a set of standard routines to handle This package provides a set of standard routines to handle
sets gaussian distributions. sets gaussian distributions.
A new set of gaussians is initialized by A new set of gaussians is initialized by
\$x = (xdims,gdims); \$x = PDL::Gaussian->new(xdims,gdims);
Where I<xdims> is a reference to an array containing the Where I<xdims> is a reference to an array containing the
dimensions in the space the gaussian dimensions in the space the gaussian
is in and I<gdimslist> is a reference to an array containing is in and I<gdimslist> is a reference to an array containing
the dimensionality of the gaussian space. For example, after the dimensionality of the gaussian space. For example, after
\$x = \$x = PDL::Gaussian->new([2],[3,4]);
\$y = \$y = PDL::Gaussian->new([],[]);
The variable C<\$x> contains set of 12 (=C<3*4>) 2-Dimensional gaussians The variable C<\$x> contains set of 12 (=C<3*4>) 2-Dimensional gaussians
and C<\$y> is the simplest form: one 1D gaussian. and C<\$y> is the simplest form: one 1D gaussian.
Currently, I<xdims> may containe either zero or one dimensions Currently, I<xdims> may containe either zero or one dimensions
due to limitations of L<PDL::PP>. due to limitations of L<PDL::PP>.
To set the distribution parameters, you can use the routines To set the distribution parameters, you can use the routines
\$x->set_covariance(\$cv); # covariance matrices \$x->set_covariance(\$cv); # covariance matrices
\$x->set_icovariance(\$icv); # inverse covariance matrices \$x->set_icovariance(\$icv); # inverse covariance matrices
End of changes. 3 change blocks.
4 lines changed or deleted 4 lines changed or added