Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pdl::histogram(3) [redhat man page]

Histogram(3)						User Contributed Perl Documentation					      Histogram(3)

NAME
PDL::RandVar::Histogram -- Arbitary distribution random variables VERSION
Current version is 1.0 SYNOPSIS
use PDL::RandVar::Histogram $m = new PDL::RandVar::Histogram($dist); DESCRIPTION
Histogram random variables are useful for generating distributions to match arbitrary vector (N-D) data. On initialization, you feed in a clumped array whose value is proportional 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 index. History 1.0 11-Dec-2001 -- Basic functionality & testing (CED) Author, license, no warranty This file copyright(C) 2001, 2002 Craig DeForest (cdeforest@solar.stanford.edu). 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. Bugs: Runs a little slow -- hooking into the gnu package will work better. Functions new Construct a new histogram-distribution random variable Signature: (See PDL::PDL::RandVar::new) $a = new PDL::RandVar::Histogram(<size>,<opt>); Options: seed 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)

Check Out this Related Man Page

Exporter(3)						User Contributed Perl Documentation					       Exporter(3)

NAME
PDL::Exporter - PDL export control DESCRIPTION
Implements the standard conventions for import of PDL modules in to the namespace Hopefully will be extended to allow fine control of which namespace is used. SYNOPSIS
use PDL::Exporter; use PDL::MyModule; # Import default function list ':Func' use PDL::MyModule ''; # Import nothing (OO) use PDL::MyModule '...'; # Same behaviour as Exporter DESCRIPTION
"PDL::Exporter" is a drop-in replacement for the Exporter module. It confers the standard PDL export conventions to your module. Usage is fairly straightforward and best illustrated by an example. The following shows typical usage near the top of a simple PDL module: package PDL::MyMod; use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); require PDL::Exporter; @ISA = qw(PDL::Exporter); @EXPORT_OK = qw(inc myfunc); # these will be exported by default %EXPORT_TAGS = (Func=>[@EXPORT_OK], Internal => [qw/internfunc1 internfunc2/], ); # ... body of your module 1; # end of simple module SEE ALSO
Exporter AUTHOR
Copyright (C) Karl Glazebrook (kgb@aaoepp.aao.gov.au). Some docs by Christian Soeller. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file. perl v5.12.1 2009-10-17 Exporter(3)
Man Page