prepare_experimental#
- NormalizedCrossCorrelationMetric.prepare_experimental(patterns: ndarray | Array) ndarray | Array [source]#
Prepare experimental patterns before matching to dictionary patterns in
match()
.- Patterns are prepared by:
Setting the data type to
dtype
.Excluding the experimental patterns where
navigation_mask
isFalse
if the mask is set.Reshaping to shape
(n_experimental_patterns, -1)
Applying a signal mask if
signal_mask
is set.Rechunking if
rechunk
isTrue
.Normalizing to a mean of 0 and a standard deviation of 1.
- Parameters:
- patterns
Experimental patterns.
- Returns:
prepared_patterns
Prepared experimental patterns.