|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Collaboration diagram for ILIAS\Refinery\String\Levenshtein:Public Member Functions | |
| standard (string $str, int $maximumDistance) | |
| Creates an object of the Levenshtein class This class calculates the levenshtein distance with a default value of 1.0 per insert, delete, replacement. More... | |
| custom (string $str, int $maximum_distance, float $cost_insertion, float $cost_replacement, float $cost_deletion) | |
| Creates an object of the Levenshtein class This class calculates the levenshtein distance with custom parameters for insert, delete, replacement. More... | |
Definition at line 25 of file Levenshtein.php.
| ILIAS\Refinery\String\Levenshtein::custom | ( | string | $str, |
| int | $maximum_distance, | ||
| float | $cost_insertion, | ||
| float | $cost_replacement, | ||
| float | $cost_deletion | ||
| ) |
Creates an object of the Levenshtein class This class calculates the levenshtein distance with custom parameters for insert, delete, replacement.
| string | $str | string for distance calculation |
| int | $maximum_distance | maximum allowed distance, limits the calculation of the Levenshtein distance. A maximum distance of 0 disables the function |
| float | $cost_insertion | cost for insertion default 1.0 |
| float | $cost_replacement | cost for replacement default 1.0 |
| float | $cost_deletion | cost for deletion default 1.0 |
Definition at line 51 of file Levenshtein.php.
| ILIAS\Refinery\String\Levenshtein::standard | ( | string | $str, |
| int | $maximumDistance | ||
| ) |
Creates an object of the Levenshtein class This class calculates the levenshtein distance with a default value of 1.0 per insert, delete, replacement.
| string | $str | string for distance calculation |
| int | $maximumDistance | maximum allowed distance, limits the calculation of the Levenshtein distance. A maximum distance of 0 disables the function |
Definition at line 35 of file Levenshtein.php.