Function distances::strings::needleman_wunsch::nw_distance_custom

source ·
pub fn nw_distance_custom<U: UInt>(
    penalties: Penalties<U>,
) -> impl Fn(&str, &str) -> U
Expand description

Use a custom set of penalties to create a function to that calculates the Needleman-Wunsch edit distance between two strings using the specified penalties.

§Arguments:

  • penalties: The penalties to use in the generated function.

§Returns:

A function with the same signature as nw_distance.