• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / commons-statistics / 162
100%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2021 07:07PM UTC
Jobs 1
Files 33
Run time 24s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
162

push

travis-ci-com

aherbert
Use a single instance of the standard normal distribution

The distribution is immutable. The underlying computations use static
methods and can be used across threads.

Note: A micro-optimisation to eliminate the mean=0 and SD=1 from the
computations used from NormalDistribution(0, 1) has not been performed
to aid maintenance. It is presumed that multiplication by 1 or addition
of 0 is insignificant compared to the calls to:

- Math.exp (density)
- Erf.value (cumulativeProbability)
- InverseErf.value (inverseCumulativeProbability)

Only the logDensity function would be expected to improve performance as
it would eliminate 1 subtraction and 1 devision to leave the computation
as 2 multiplications and a subtraction:

return -0.5 * x * x - halfLog2Pi

1169 of 1169 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 162.1 14 Sep 2021 07:07PM UTC 0
100.0
Travis Job 162.1
Source Files on build 162
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #162
  • 81cbacd3 on github
  • Prev Build on master (#161)
  • Next Build on master (#163)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc