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_consistensy()
test_consistensy_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.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()

hyperspy.tests.mva.test_export module

class hyperspy.tests.mva.test_export.TestMVAExport

Bases: object

setUp()
test_get_bss_factor()
test_get_bss_loadings()

Module contents