hyperspy.tests.mva package¶
Submodules¶
hyperspy.tests.mva.test_bss module¶
-
class
hyperspy.tests.mva.test_bss.
TestBSS1D
¶ Bases:
object
-
setUp
()¶
-
test_mask_diff_order_0
()¶
-
test_mask_diff_order_0_on_loadings
()¶
-
test_mask_diff_order_1
()¶
-
test_mask_diff_order_1_on_loadings
()¶
-
test_on_loadings
()¶
-
-
class
hyperspy.tests.mva.test_bss.
TestBSS2D
¶ Bases:
object
-
setUp
()¶
-
test_diff_axes_string_with_mask
()¶
-
test_diff_axes_string_without_mask
()¶
-
test_diff_axes_without_mask
()¶
-
test_mask_diff_order_0
()¶
-
test_mask_diff_order_0_on_loadings
()¶
-
test_mask_diff_order_1
()¶
-
test_mask_diff_order_1_diff_axes
()¶
-
test_mask_diff_order_1_on_loadings
()¶
-
test_mask_diff_order_1_on_loadings_diff_axes
()¶
-
test_on_loadings
()¶
-
-
hyperspy.tests.mva.test_bss.
are_bss_components_equivalent
(c1_list, c2_list, atol=0.0001)¶ Check if two list of components are equivalent.
To be equivalent they must differ by a max of atol except for an arbitraty -1 factor.
Parameters: - c2_list (c1_list,) – The components to check.
- atol (float) – Absolute tolerance for the amount that they can differ.
Returns: Return type: bool
hyperspy.tests.mva.test_decomposition module¶
-
class
hyperspy.tests.mva.test_decomposition.
TestGetExplainedVarinaceRatio
¶ Bases:
object
-
setUp
()¶
-
test_data
()¶
-
test_no_evr
(*arg, **kw)¶
-
-
class
hyperspy.tests.mva.test_decomposition.
TestNdAxes
¶ Bases:
object
-
setUp
()¶
-
test_consistency
()¶
-
test_consistency_poissonian
()¶
-
-
class
hyperspy.tests.mva.test_decomposition.
TestNormalizeComponents
¶ Bases:
object
-
setUp
()¶
-
test_normalize_bss_factors
()¶
-
test_normalize_bss_loadings
()¶
-
test_normalize_decomposition_factors
()¶
-
test_normalize_decomposition_loadings
()¶
-
-
class
hyperspy.tests.mva.test_decomposition.
TestReturnInfo
¶ Bases:
object
-
setUp
()¶
-
test_decomposition_not_supported
()¶
-
test_decomposition_supported_return_false
()¶
-
test_decomposition_supported_return_true
()¶
-
-
class
hyperspy.tests.mva.test_decomposition.
TestReverseDecompositionComponent
¶ Bases:
object
-
setUp
()¶
-
test_reversal_factors_multiple_components_not_reversed
()¶
-
test_reversal_factors_multiple_components_reversed
()¶
-
test_reversal_factors_one_component_not_reversed
()¶
-
test_reversal_factors_one_component_reversed
()¶
-
test_reversal_loadings_multiple_components_not_reversed
()¶
-
test_reversal_loadings_multiple_components_reversed
()¶
-
test_reversal_loadings_one_component_not_reversed
()¶
-
test_reversal_loadings_one_component_reversed
()¶
-