AutoPas  3.0.0
Loading...
Searching...
No Matches
Functions
autopas::utils::StringUtils::anonymous_namespace{StringUtils.h} Namespace Reference

Functions

int needlemanWunschScore (std::string s1, std::string s2)
 Calculates a similarity score of s1 and s2 based on the Needleman-Wunsch string alignment algorithm.
 

Function Documentation

◆ needlemanWunschScore()

int autopas::utils::StringUtils::anonymous_namespace{StringUtils.h}::needlemanWunschScore ( std::string  s1,
std::string  s2 
)
inline

Calculates a similarity score of s1 and s2 based on the Needleman-Wunsch string alignment algorithm.

Parameters
s1
s2
Returns
Score in the lower right corner of the score matrix.