MCPcopy Create free account
hub / github.com/brendano/arkref / digamma

Method digamma

src/arkref/ext/fig/basic/NumUtils.java:336–348  ·  view source on GitHub ↗

Stolen from Radford Neal's fbm package. digamma(x) is defined as (d/dx) log Gamma(x). It is computed here using an asymptotic expansion when x>5. For x<=5, the recurrence relation digamma(x) = digamma(x+1) - 1/x is used repeatedly. See Venables & Ripley, Modern Applied Statistics with S-Plus, pp.

(double x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected