Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
319 B
Plaintext

// LinearGapPenalty: the score of a gap of Length positions under a linear gap
// model, where every position of a gap scores Gap (usually negative).
FUNCTION LinearGapPenalty(Length : INTEGER, Gap : INTEGER) RETURNS INTEGER
REQUIRE Length >= 0
ENSURE RESULT == Length * Gap
RETURN Length * Gap
ENDFUNCTION