24 lines
657 B
Plaintext
24 lines
657 B
Plaintext
|
create or replace package hamming#
|
||
|
is
|
||
|
--+--------------------------------------------------------------------------+
|
||
|
-- Computes the Hamming distance between two starnds.
|
||
|
--
|
||
|
-- @param i_first sequence to compare
|
||
|
-- @param i_second sequence to compare
|
||
|
--
|
||
|
-- @return Hamming distance between i_first and i_second
|
||
|
--+--------------------------------------------------------------------------+
|
||
|
function distance (
|
||
|
i_first varchar2
|
||
|
,i_second varchar2
|
||
|
) return pls_integer;
|
||
|
|
||
|
end hamming#;
|
||
|
/
|
||
|
|
||
|
create or replace package body hamming#
|
||
|
is
|
||
|
|
||
|
end hamming#;
|
||
|
/
|