prepare_dictionary#
- NormalizedDotProductMetric.prepare_dictionary(patterns: ndarray | Array) ndarray | Array[source]#
Prepare dictionary patterns before matching to experimental patterns in
match().- Patterns are prepared by:
Setting the data type to
dtype.Applying a signal mask if
signal_maskis set.Normalizing to a mean of 0.
- Parameters:
- patterns
Dictionary patterns.
- Returns:
prepared_patternsPrepared dictionary patterns.