permutation#
- frouros.utils.stats.permutation(X: ndarray, Y: ndarray, statistic: Callable, statistical_args: Dict[str, Any], num_permutations: int, num_jobs: int, random_state: Optional[int] = None, verbose: bool = False) List[float]#
Permutation method.
- Parameters:
X (numpy.ndarray) – reference data
Y (numpy.ndarray) – test data
statistic (Callable) – statistic to use
statistical_args (Dict[str, Any]) – args to pass to statistic method
num_permutations (int) – number of permutations to use
num_jobs (int) – number of jobs to use
random_state (Optional[int]) – random state value
verbose (bool) – verbose flag
- Returns:
permuted statistics
- Return type:
List[float]