1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Functional two-sample inference tests.
//!
//! This module provides fdars' first standalone functional-inference surface:
//! two-sample functional hypothesis tests built by reusing existing
//! permutation, Hotelling-T², and bootstrap-band machinery elsewhere in the
//! crate. It is additive and non-breaking — no existing public signature is
//! altered by this module.
//!
//! # R baselines
//!
//! The functions here mirror the table-stakes two-sample tests from the R FDA
//! ecosystem:
//!
//! * [`t_perm_test`] / [`f_perm_test`] — `fda::tperm.fd` / `fda::Fperm.fd`
//! (permutation two-sample mean tests).
//! * [`two_sample_mean_test`] — the FPC-basis Hotelling-T² mean-equality test
//! in the spirit of `fda.usc` mean/covariance equality tests.
//! * [`mean_scb`] / [`scb_two_sample_test`] — `SCBmeanfd`-style simultaneous
//! confidence bands for the mean and the mean difference.
//!
//! # Conventions
//!
//! Permutation tests take an explicit deterministic `seed`
//! (`StdRng::seed_from_u64(seed)`) and default to `n_perm = 999` at the call
//! site. All public functions return `Result<_, FdarError>` and validate their
//! inputs at entry. Result structs derive `Debug, Clone, PartialEq` and are
//! serde-gated.
pub use oneway_anova_vstat;
pub use ;
pub use two_sample_mean_test;
pub use ;
pub use ;
/// Result of a functional two-sample hypothesis test.
///
/// Carries the observed test statistic and the associated p-value. For
/// permutation-based tests, `n_perm` records the number of permutations used;
/// for the non-permutation (asymptotic / SCB) paths it is `0`.