normalize_template#
- normalize_template(template, mask, n_observations)[source]#
Standardizes
template
to zero mean and unit standard deviation inmask
.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.
- Returns:
- BackendArray
Standardized input data.
References
[1]Hrabe T. et al, J. Struct. Biol. 178, 177 (2012).