PDL::NDBin::Action::Count - Action for PDL::NDBin that counts elements
version 0.028
This class implements an action for PDL::NDBin.
my $instance = PDL::NDBin::Action::Count->new( N => $N, type => indx, # default );
Construct an instance for this action. Requires the number of bins $N as input. Optionally allows the type of the output ndarray to be set (defaults to indx).
$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.
my $result = $instance->result;
Return the result of the computation.
Edward Baudrez <ebaudrez@cpan.org>
This software is copyright (c) 2024 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.
To install PDL::NDBin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL::NDBin
CPAN shell
perl -MCPAN -e shell install PDL::NDBin
For more information on module installation, please visit the detailed CPAN module installation guide.