ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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 26 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 52 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 36 of file Levenshtein.php.