scamp.utilities.get_average_square_correlation

scamp.utilities.get_average_square_correlation(test_string: str, template_string: str) float[source]

A test of the similarity of two strings via a (squared) cross-correlation of their characters. (Scaled down to compensate for the influence of string lengths.)

Parameters:
  • test_string – string we are testing

  • template_string – template string we are testing against