MCPcopy Create free account
hub / github.com/dask/dask / _ttest_finish

Function _ttest_finish

dask/array/stats.py:456–466  ·  view source on GitHub ↗

Common code between all 3 t-test functions.

(df, t)

Source from the content-addressed store, hash-verified

454
455
456def _ttest_finish(df, t):
457 """Common code between all 3 t-test functions."""
458 # XXX: np.abs -> da.absolute
459 # XXX: delayed(distributions.t.sf)
460 prob = (
461 delayed(distributions.t.sf)(da.absolute(t), df) * 2
462 ) # use np.abs to get upper tail
463 if t.ndim == 0:
464 t = t[()]
465
466 return t, prob
467
468
469def _count(x, axis=None):

Callers 3

ttest_1sampFunction · 0.85
ttest_relFunction · 0.85
_ttest_ind_from_statsFunction · 0.85

Calls 1

delayedFunction · 0.90

Tested by

no test coverage detected