3 lines
88 B
Python
3 lines
88 B
Python
def affine_gap_penalty(length, open_, extend):
|
|
return open_ + (length - 1) * extend
|