get_decomposition_model#
- EBSD.get_decomposition_model(components: int | list[int] | None = None, dtype_out: str | dtype | type = 'float32') EBSD | LazyEBSD[source]#
Get the model signal generated with the selected number of principal components from a decomposition.
Calls HyperSpy’s
get_decomposition_model(). Learning results are preconditioned before this call, doing the following:Set
numpy.dtypeto desireddtype_out.Remove unwanted components.
Rechunk to suitable chunks if
Array.
- Parameters:
- components
If not given, rebuilds the signal from all components. If
int, rebuilds signal fromcomponentsin range 0-givenint. If list ofints, rebuilds signal from onlycomponentsin given list.- dtype_out
Data type to cast learning results to (default is
"float32). Note that HyperSpy casts to"float64".
- Returns:
s_modelModel signal.