bimfa#
- pymultifracs.bivariate.bimfa(mrq1, mrq2, scaling_ranges, weighted=None, n_cumul=2, q1=None, q2=None, mode='all2all', min_j=1, bootstrap_weighted=None, R=1, estimates='auto', robust=False, robust_kwargs=None, idx_reject=None, check_regularity=True)#
Bivariate multifractal analysis.
- Parameters:
- mrq1
MultiResolutionQuantityBase Left-hand multi-resolution quantity to analyze.
- mrq2
MultiResolutionQuantityBase Right-hand multi-resolution quantity to analyze.
- scaling_ranges
list[tuple[int,int]] List of pairs of (j1, j2) ranges of scales for the analysis.
- weighted
str|None Weighting mode for the linear regressions. Defaults to None, which is no weighting. Possible values are ‘Nj’ which weighs by number of coefficients, and ‘bootstrap’ which weights by bootstrap-derived estimates of variance.
- n_cumul
int Number of cumulants computed.
- q1
ndarrayoffloat, shape (n_exponents,) List of q values used in the multifractal analysis of the
mrq1.- q2
ndarrayoffloat, shape (n_exponents,) List of q values used in the multifractal analysis of the
mrq2.- mode
str, optional - Mode of bivariate analysis. Either:
- ‘all2all’: each possible pair of signals between
mrq1and mrq2is analyzed, generatingmrq1.n_channel x mrq2.n_channelpairs
- ‘all2all’: each possible pair of signals between
- ‘pairwise’: the signals in
mrq1andmrq2are paired together based on their order of apparition,
mrq1andmrq2need to have the same number of signals.
- ‘pairwise’: the signals in
- bootstrap_weighted
str|None Whether the boostrapped mrqs will have weighted regressions.
- R
int Number of bootstrapped repetitions, R > 1 not currently tested!
- estimates
str - Quantities to estimate: string containing a character for each of:
“s”: structure function
“c”: cumulants
Defaults to “auto” which computes both.
- robustbool
Use robust estimates of cumulants.
- robust_kwargs
dict|None Arguments passed for robust estimation. Used for cumulant estimates of order >= 3.
- idx_reject
dict[int,ndarrayof bool] Dictionary associating each scale to a boolean array indicating whether certain coefficients should be removed.
- check_regularity: bool
Whether to check the minimum regularity requirements are met by the MRQs.
- mrq1
- Returns:
MFractalBiVarThe output of the bivariate multifractal analysis.