|Linux & Unix Commands - Search Man Pages
Histogram(3) User Contributed Perl Documentation Histogram(3)
PDL::RandVar::Histogram -- Arbitary distribution random variables
Current version is 1.0
$m = new PDL::RandVar::Histogram($dist);
Histogram random variables are useful for generating distributions to match arbitrary vec-
tor (N-D) data. On initialization, you feed in a clumped array whose value is propor-
tional to the probability of landing in each bin. You get back values of indices into
the original vector. If you ask for it, you can get subsampling in the mantissa of each
1.0 11-Dec-2001 -- Basic functionality & testing (CED)
Author, license, no warranty
This file copyright(C) 2001, 2002 Craig DeForest (email@example.com). This
software/documentation may be distributed under the same terms as PDL itself (license
available at http://pdl.perl.org). This package comes with NO WARRANTY.
Runs a little slow -- hooking into the gnu package will work better.
Construct a new histogram-distribution random variable
Signature: (See PDL::PDL::RandVar::new)
$a = new PDL::RandVar::Histogram(<size>,<opt>);
A number to use as the seed.
$a = new PDL::RandVar::Histogram($dist);
$xy = sample $a;
perl v5.8.0 2002-05-16 Histogram(3)
All times are GMT -4. The time now is 12:38 AM.