prepare_experimental#

NormalizedDotProductMetric.prepare_experimental(patterns: Union[ndarray, Array]) Union[ndarray, Array][source]#

Prepare experimental patterns before matching to dictionary patterns in match().

Patterns are prepared by:
  1. Setting the data type to dtype.

  2. Reshaping to shape (n_experimental_patterns, -1)

  3. Applying a signal mask if signal_mask is set.

  4. Rechunking if rechunk is True.

  5. Normalizing to a mean of 0.

Parameters:
patterns

Experimental patterns.

Returns:
prepared_patterns

Prepared experimental patterns.