MCPcopy Index your code
hub / github.com/clips/pattern / tpdf

Function tpdf

pattern/metrics.py:920–923  ·  view source on GitHub ↗

Probability density function for the Student's t-distribution.

(x, df)

Source from the content-addressed store, hash-verified

918 return (1 / sqrt(2*pi) * abs(sigma)) * exp(-u*u / 2)
919
920def tpdf(x, df):
921 """ Probability density function for the Student's t-distribution.
922 """
923 return gamma((df+1) * 0.5) / (sqrt(pi * df) * gamma(df * 0.5) * (1 + x**2.0 / df) ** ((df+1) * 0.5))

Callers

nothing calls this directly

Calls 1

gammaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…