Edward Baudrez > PDL-NDBin-0.012 > PDL::NDBin::Action::Count

Download:
PDL-NDBin-0.012.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.012   Source   Latest Release: PDL-NDBin-0.015

NAME ^

PDL::NDBin::Action::Count - Action for PDL::NDBin that counts elements

VERSION ^

version 0.012

DESCRIPTION ^

This class implements an action for PDL::NDBin.

METHODS ^

new()

        my $instance = PDL::NDBin::Action::Count->new(
                N    => $N,
                type => long,   # default
        );

Construct an instance for this action. Requires the number of bins $N as input. Optionally allows the type of the output piddle to be set (defaults to long).

process()

        $instance->process( $iter );

Run the action with the given iterator $iter. This action will compute all bins during the first call and will subsequently deactivate the variable.

result()

        my $result = $instance->result;

Return the result of the computation.

AUTHOR ^

Edward Baudrez <ebaudrez@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Edward Baudrez.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: