normalize_template#

normalize_template(template, mask, n_observations, axis=None)[source]#

Standardizes template to zero mean and unit standard deviation in mask.

Warning

template is modified during the operation.

Parameters:
templateBackendArray

Input data.

maskBackendArray

Mask of the same shape as template.

n_observationsfloat

Sum of mask elements.

axistuple of floats, optional

Axis to normalize over, all axis by default.

Returns:
BackendArray

Standardized input data.

References

[1]

Hrabe T. et al, J. Struct. Biol. 178, 177 (2012).