Gaussian.pm (PDL-2.082) | : | Gaussian.pm (PDL-2.083) | ||
---|---|---|---|---|

=head1 NAME | =head1 NAME | |||

PDL::Gaussian -- Gaussian distributions. | PDL::Gaussian -- Gaussian distributions. | |||

=head1 SYNOPSIS | =head1 SYNOPSIS | |||

$x = new PDL::Gaussian([3],[5]); | $x = PDL::Gaussian->new([3],[5]); | |||

$x->set_covariance(...) | $x->set_covariance(...) | |||

=head1 DESCRIPTION | =head1 DESCRIPTION | |||

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 = new PDL::Gaussian(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 = new PDL::Gaussian([2],[3,4]); | $x = PDL::Gaussian->new([2],[3,4]); | |||

$y = new PDL::Gaussian([],[]); | $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 |