pub fn student_1samp_p(
moments: &SampleMoments,
mu0: f64,
alt_hyp: AltHyp,
) -> Result<f64, StatsError>Expand description
p-value of Student’s one-sample t-test for equality.
Arguments:
moments: sample moments struct.mu0: hypothesized distribution mean.alt_hyp: alternative hypothesis.
§Errors
Returns an error in any of the following conditions:
moments.n() <= 1.moments.stdev() == 0.