#257 PDL::Primitive statsover adev: output conflict

closed
nobody
core (120)
5
2011-03-04
2011-02-18
bigcmax
No

perl v5.10.0, PDL v2.4.7, Linux 2.6.27.56-0.1-pae

calculation of the absolute deviation in function description:
ADEV = sqrt(sum( abs(x-mean(x)) )/N)

calculation of adev in source code (primitive.pd, line 1299):
$adev() = tmp1/norm;

this conflicts with the function description and should be (like line 1341):
$adev() = sqrt( tmp1/norm );

it is not a real bug but a bit confusing and should be consistent.
regards,
christoph

Discussion

  • Chris Marshall

    Chris Marshall - 2011-02-18
    • status: open --> pending
     
  • Chris Marshall

    Chris Marshall - 2011-02-18

    It is definitely a bug since the routine calculated two
    different results depending on whether or not the
    badflag is set or not (whether or not there are any
    bad values present).

    Thanks for reporting the problem. Fixed in git and
    will be available in the next CPAN release.

    Marked PENDING and the ticket will close in a
    couple of weeks unless additional replies or
    other actions on this ticket.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks