« blib/lib/App/RecordStream/Aggregator/InjectInto.pm
↑ Summary
blib/lib/App/RecordStream/Clumper/CubeKeyPerfect.pm »
| 1 | package App::RecordStream::Aggregator::Ord2Univariate; | ||
| 2 | |||
| 3 | 9 | our $VERSION = "4.0.23"; | |
| 4 | |||
| 5 | 9 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 9 | ▶ | use App::RecordStream::Aggregator::MapReduce::Field; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 9 | ▶ | use App::RecordStream::Aggregator; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 9 | ▶ | use base 'App::RecordStream::Aggregator::MapReduce::Field'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | #sub new -- passed through | ||
| 14 | |||
| 15 | #sub new_from_valuation -- passed through | ||
| 16 | |||
| 17 | sub map_field | ||
| 18 | { | ||
| 19 | 13 | ▶ | my ($this, $x) = @_; |
|
Subroutine
map_field: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | |||
| 21 | 13 | return [1, | |
| 22 | $x, | ||
| 23 | $x * $x]; | ||
| 24 | } | ||
| 25 | |||
| 26 | sub reduce | ||
| 27 | { | ||
| 28 | 9 | ▶ | my ($this, $cookie, $cookie2) = @_; |
|
Subroutine
reduce: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 29 | |||
| 30 | 9 | my ($sum1_1, $sumx_1, $sumx2_1) = @$cookie; | |
| 31 | 9 | my ($sum1_2, $sumx_2, $sumx2_2) = @$cookie2; | |
| 32 | |||
| 33 | 9 | return [$sum1_1 + $sum1_2, | |
| 34 | $sumx_1 + $sumx_2, | ||
| 35 | $sumx2_1 + $sumx2_2]; | ||
| 36 | } | ||
| 37 | |||
| 38 | sub squish | ||
| 39 | { | ||
| 40 | 0 | ▶ | die "Ord2Univariate subclass doesn't implement squish\n"; |
|
Subroutine
squish: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 41 | } | ||
| 42 | |||
| 43 | 9 | 1; | |