Perform one-sample t-test.
This is a modified version of scipy.stats.ttest_1samp()
that avoids
a (relatively) time-consuming p-value calculation, and can adjust
for implausibly small variance values [1].
array
Array to return t-values for.
float
The variance estimate will be given by var + sigma * max(var)
or
var + sigma
, depending on “method”. By default this is 0 (no
adjustment). See Notes for details.
str
If ‘relative’, the minimum variance estimate will be sigma * max(var), if ‘absolute’ the minimum variance estimate will be sigma.
array
T-values, potentially adjusted using the hat method.
Notes
To use the “hat” adjustment method [1], a value
of sigma=1e-3
may be a reasonable choice.
References
mne.stats.ttest_1samp_no_p
#