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

gonum / mathext
88%
master: 86%

Build:
Build:
LAST BUILD BRANCH: deprecated
DEFAULT BRANCH: master
Repo Added 24 Apr 2016 11:18PM UTC
Files 11
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

LAST BUILD ON BRANCH normquant
branch: normquant
CHANGE BRANCH
x
Reset
  • normquant
  • add-digamma
  • add-go.1.7-drop-go-1.4
  • addmvgamma
  • archive
  • close
  • deprecated
  • fix-coveralls-status
  • fixairyminor
  • fixdshch
  • fixzs1s2
  • fixzseri
  • fixzshch
  • fixzuchk
  • go-1.6.3-and-1.7rc2
  • go-1.7.3
  • go-1.7beta2
  • go-1.7rc3
  • go1.7beta1
  • incbeta
  • master
  • moveairy
  • movequant
  • optquant
  • zs1s2sig

pending completion
87

push

travis-ci

btracey
Implement and optimize NormalQuantile

This PR moves the computation of the standard normal quantile from gonum/stat/distuv to gonum/mathext. This also optimizes the implementation that had been in distuv. While performing this modification, I also compared with the implementation in cephes, and applied the same optimizations. These optimizations may as well be kept.

The accuracy of this implementation and the implementation in cephes are similar (at least compared with the tests here).

At the start, the benchmark of the Cephes implementation was ~51000ns/op, reduced to ~41000ns/op after optimizations. The distuv code started at ~41000ns/op, and these optimizations reduce to 24600ns/op, about a 40% increase.

A piece of code I have been working on spends about 20% of the time just computing the normal quantile, and these optimizations lead to about a 10% improvement on this real program

1791 of 2045 relevant lines covered (87.58%)

10.98 hits per line

Relevant lines Covered
Build:
Build:
2045 RELEVANT LINES 1791 COVERED LINES
10.98 HITS PER LINE
Source Files on normquant
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
87 normquant Implement and optimize NormalQuantile This PR moves the computation of the standard normal quantile from gonum/stat/distuv to gonum/mathext. This also optimizes the implementation that had been in distuv. While performing this modification, I als... push 19 Feb 2017 05:00PM UTC btracey travis-ci pending completion  
See All Builds (98)
  • Repo on GitHub
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

© 2025 Coveralls, Inc