Skip to content

Commit

Permalink
remove unused median from statsover PP Pars
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 27, 2024
1 parent 14ed9a7 commit e95e00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PDL/Primitive.pd
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ have its bad flag set if the output contains any bad data.

pp_def('statsover',
HandleBad => 1,
Pars => 'a(n); w(n); float+ [o]avg(); float+ [o]prms(); int+ [o]median(); int+ [o]min(); int+ [o]max(); float+ [o]adev(); float+ [o]rms()',
Pars => 'a(n); w(n); float+ [o]avg(); float+ [o]prms(); int+ [o]min(); int+ [o]max(); float+ [o]adev(); float+ [o]rms()',
Code => <<'EOF',
PDL_IF_GENTYPE_REAL(PDL_LDouble,PDL_CLDouble) tmp = 0, tmp1 = 0, diff = 0;
$GENERIC(min) curmin = 0, curmax = 0;
Expand Down Expand Up @@ -1076,7 +1076,7 @@ sub PDL::statsover {
my $max = PDL->nullcreate($data);
my $adev = PDL->nullcreate($data);
my $prms = PDL->nullcreate($data);
PDL::_statsover_int($data, $weights, $mean, $prms, $median, $min, $max, $adev, $rms);
PDL::_statsover_int($data, $weights, $mean, $prms, $min, $max, $adev, $rms);
wantarray ? ($mean, $prms, $median, $min, $max, $adev, $rms) : $mean;
}
EOPM
Expand Down

0 comments on commit e95e00d

Please sign in to comment.