Changeset 26554 in project
 Timestamp:
 04/23/12 02:02:20 (8 years ago)
 Location:
 release/4/levenshtein/trunk
 Files:

 1 added
 1 edited
Legend:
 Unmodified
 Added
 Removed

release/4/levenshtein/trunk/levenshtein.wiki
r26552 r26554 111 111 ==== levenshteindistance/genericstring 112 112 113 <procedure>(levenshteindistance/genericstring SOURCE TARGET [#:insertcost INSERTCOST] [#:deletecost DELETECOST] [#:substitutecost SUBSTITUTECOST] [#:=? EQ PROC] [#:limitcost LIMITCOST] [#:numericmeans NUMERICMEANS] [#:stringmeans STRINGMEANS])</procedure>113 <procedure>(levenshteindistance/genericstring SOURCE TARGET [#:insertcost INSERTCOST] [#:deletecost DELETECOST] [#:substitutecost SUBSTITUTECOST] [#:=? EQL] [#:limitcost LIMITCOST] [#:numericmeans NUMERICMEANS] [#:stringmeans STRINGMEANS])</procedure> 114 114 115 115 Calculates the edit distance from the {{SOURCE}} to the {{TARGET}}. … … 120 120 ; DELETECOST : A {{number}}. The edit cost of a delete, default {{1}}. 121 121 ; SUBSTITUTECOST : A {{number}}. The edit cost of a substitute, default {{1}}. 122 ; EQ PROC: A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{char=?}}. Probably not useful to override the default predicate.122 ; EQL : A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{char=?}}. Probably not useful to override the default predicate. 123 123 ; LIMITCOST : A {{number}} or {{#f}}. Limit edit distance calculation to cost, default {{#f}}. Number type must be compatible with the numericmeans. 124 124 ; NUMERICMEANS : A proceduremeans. The arithmetic means, default {{levenshteinfixnummeans}}. … … 131 131 ==== levenshteindistance/genericsequence 132 132 133 <procedure>(levenshteindistance/genericsequence SOURCE TARGET [#:insertcost INSERTCOST] [#:deletecost DELETECOST] [#:substitutecost SUBSTITUTECOST] [#:getworkvector GETWORKVECTOR] [#: =? EQPROC] [#:limitcost LIMITCOST] [#:numericmeans NUMERICMEANS] [#:stringmeans STRINGMEANS])</procedure>133 <procedure>(levenshteindistance/genericsequence SOURCE TARGET [#:insertcost INSERTCOST] [#:deletecost DELETECOST] [#:substitutecost SUBSTITUTECOST] [#:getworkvector GETWORKVECTOR] [#:eql EQL] [#:limitcost LIMITCOST] [#:numericmeans NUMERICMEANS] [#:stringmeans STRINGMEANS])</procedure> 134 134 135 135 Calculates the edit distance from the {{SOURCE}} to the {{TARGET}}. … … 142 142 ; DELETECOST : A {{number}}. The edit cost of a delete, default {{1}}. 143 143 ; SUBSTITUTECOST : A {{number}}. The edit cost of a substitute, default {{1}}. 144 ; EQ PROC: A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{eqv?}}.144 ; EQL : A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{eqv?}}. 145 145 ; LIMITCOST : A {{number}} or {{#f}}. Limit edit distance calculation to cost, default {{#f}}. Number type must be compatible with the numericmeans. 146 146 ; NUMERICMEANS : A proceduremeans. The arithmetic means, default {{levenshteinfixnummeans}}. … … 153 153 operations performed. 154 154 155 (pre "(requireextension levenshteinvector)") 155 ==== Usage 156 157 <enscript language=scheme> 158 (use levenshteinvector) 159 </enscript> 156 160 157 161 ==== levenshteindistance/vector* 158 162 159 <procedure>(levenshteindistance/vector* SOURCE TARGET [EDITOPER ...] [#: =? EQPROC] [#:operations? OPERATIONS] [#:numericmeans NUMERICMEANS])</procedure>163 <procedure>(levenshteindistance/vector* SOURCE TARGET [EDITOPER ...] [#:eql EQL] [#:mult MULT] [#:plus PLUS] [#:lt LT] [#:operations? OPERATIONS])</procedure> 160 164 161 165 Calculates the edit distance from the source vector {{SOURCE}} to the target … … 166 170 ; TARGET : A {{string}}. 167 171 ; EDITOPER : Edit operation definitions to apply. Defaults are the basic Insert, Delete, and Substitute. 168 ; EQPROC : A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{char=?}}. 172 ; EQL : A {{procedure}}; {{(> object object boolean)}}. The equality predicate, default {{char=?}}. 173 ; MULT : A {{procedure}}; {{(> number number number)}}. The multiply operation, default {{fx*}}. 174 ; PLUS : A {{procedure}}; {{(> number number number)}}. The plus operation, default {{fx+}}. 175 ; LT : A {{procedure}}; {{(> number number boolean)}}. The lessthan operation, default {{fx<}}. 169 176 ; OPERATIONS : A {{boolean}}. Include the matrix of edit operations performed? Default {{#f}}. 170 ; NUMERICMEANS : A proceduremeans. The arithmetic means, default {{levenshteinfixnummeans}}.171 172 (pre "(requireextension levenshteinpathiterator)")173 177 174 178 === Edit Operators
Note: See TracChangeset
for help on using the changeset viewer.