17 Apr 2021 22:13:11 UTC
- Distribution: PDL-NDBin
- Module version: 0.021
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (48 / 36 / 0)
- KwaliteeBus factor: 2
- % Coverage
- License: perl_5
- Activity24 month
- Download (203.97KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
PDL::NDBin::Action::Sum - Action for PDL::NDBin that computes sum
This class implements an action for PDL::NDBin.
my $instance = PDL::NDBin::Action::Sum->new( N => $N, type => double, # optional );
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 the type of the variable this instance is associated with, or at least long).
$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 <firstname.lastname@example.org>
This software is copyright (c) 2021 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.