spectral_connectivity.wrapper.MeasureInfo#
- class MeasureInfo(name: str, category: str, description: str, is_default: bool, is_directed: bool, requires_two_sided: bool, long_name: str, units: str, value_range: tuple[float, float], is_complex: bool, dims: tuple[str, ...], interpretation: str, diagonal_policy: str, diagonal_value: float | None, nan_for_zero_power_signal: bool, sign_convention: str | None, quantity: str | None, formula: str | None)[source]#
Bases:
objectA single connectivity measure the high-level wrapper can compute.
Its repr shows only
name,category,value_range,is_directed(when true), anddescription, solist_measures()prints one line per measure.descriptionis the one-line summary of the measure;interpretationsays how to read its values. Read any field below as an attribute, or all of them withdataclasses.asdict.- name#
Value to pass as
methodtomultitaper_connectivity()orfourier_connectivity(), and the name of the correspondingConnectivitymethod.- Type:
- category#
The output-shape contract, one of
"pairwise","power","group_pairwise","multivariate_components","delay","global","group_delay", or"phase_slope".- Type:
- is_default#
Whether the measure is in the default set computed when
methodis omitted (seeDEFAULT_METHODS).- Type:
- requires_two_sided#
Whether the measure requires a full two-sided spectrum, including negative-frequency bins.
- Type:
- units#
Units of the values:
"1"for a dimensionless score,"rad","s", or"(input units)^2/Hz"for a spectral density.- Type:
- value_range#
(lower, upper)theoretical bounds of the values, or of their magnitude whenis_complex;infmarks an unbounded side. When a computed value can lie outside them is stated indocs/CONNECTIVITY_METRIC_RANGES.md.
- dims#
Dimensions of the measure’s variable in the wrapper’s result, before band reduction or squeezing. Rich results (
canonical_coherency,global_coherence, …) are Datasets whose variable namednamehas these dimensions.
- diagonal_policy#
What a self-connection (a signal, or group, with itself) holds:
"masked_nan","undefined_nan","constant","rounding_noise","estimated", or"not_applicable", as defined in the diagonal-policy table ofdocs/CONNECTIVITY_METRIC_RANGES.md.- Type:
- diagonal_value#
The value of a
"constant"diagonal (to within rounding), or the nominal value of a"rounding_noise"one;Noneotherwise.- Type:
float or None
- nan_for_zero_power_signal#
Whether every entry involving a zero-power (flat) signal, the diagonal included, is NaN.
- Type:
- sign_convention#
Which signal leads when the sign or angle shows it;
Nonefor measures whose sign carries no lead/lag.- Type:
str or None
- quantity#
For the coherency family, the form of the value:
"magnitude","squared_magnitude","signed"(a real-valued component with its sign, e.g. the imaginary part of coherency),"phase"(an angle in radians), or"complex";Nonefor other measures.- Type:
str or None
- formula#
For the coherency family, the definition of the value;
Nonefor other measures.- Type:
str or None
Methods
Attributes