Skip to content

Some useful math/statistics functions are missing #4

Open
@AlexDaniel

Description

@AlexDaniel

Some examples of things that are missing:

  • clamp or clip https://stackoverflow.com/questions/55250700/is-there-a-clamp-method-sub-for-ranges-num-etc-in-perl6
  • “One final observation about Perl 6 and math: although Perl 6 has all the usual functions from math.h, it could certainly use a few more.” https://www.evanmiller.org/statistical-shortcomings-in-standard-math-libraries.html
    • double incbet(double a, double b, double x); # Regularized incomplete beta function
    • double incbi(double a, double b, double y); # Inverse of incomplete beta integral
    • double igam(double a, double x); # Regularized incomplete gamma integral
    • double igamc(double a, double x); # Complemented incomplete gamma integral
    • double igami(double a, double p); # Inverse of complemented incomplete gamma integral
    • double ndtr(double x); # Normal distribution function
    • double ndtri(double y); # Inverse of Normal distribution function
    • double jv(double v, double x); # Bessel function of non-integer order
  • prod. It's easy to do it yourself but if we have sum then why not have prod too (for example, numpy has both)
  • mean
  • median
  • mode ?
  • peak-to-peak (range) – (numpy example)
  • standard-deviation
  • histogram
  • and so on…

Metadata

Metadata

Assignees

No one assigned

    Labels

    RSC ReviewThis issue will be reviewed by the RSC and decided upon soonlanguageChanges to the Raku Programming Language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions