public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function setMaximumLength($maximum_length)
$maximum_length |
wild |
public function getMaximumLength()
wild |
public function didReachMaximumLength()
wild |
public function setComputeString($compute_string)
$compute_string |
wild |
public function getComputeString()
wild |
public function setTransposeCost($transpose_cost)
$transpose_cost |
wild |
public function getTransposeCost()
wild |
public function setReplaceCost($replace_cost)
$replace_cost |
wild |
public function getReplaceCost()
wild |
public function setDeleteCost($delete_cost)
$delete_cost |
wild |
public function getDeleteCost()
wild |
public function setInsertCost($insert_cost)
$insert_cost |
wild |
public function getInsertCost()
wild |
public function setAlterCost($alter_cost)
$alter_cost |
wild |
public function getAlterCost()
wild |
public function setApplySmoothing($apply_smoothing)
$apply_smoothing |
wild |
public function getApplySmoothing()
wild |
public function setSequences($x, $y)
array | $x | |
array | $y |
wild |
private function requireSequences()
wild |
public function getEditDistance()
wild |
public function getEditString()
Return a string representing the edits between the sequences. The string has these characters:
- s (same): Same character in both strings.
- i (insert): Character inserted.
- d (delete): Character deleted.
- x (replace): Character replaced.
- t (transpose): Character transposed.
wild |
private function padEditString($str)
$str |
wild |
private function getTypeMatrix()
wild |
private function getDistanceMatrix()
wild |
private function computeMatrix($x, $y)
array | $x | |
array | $y |
wild |
private function getInfinity()
wild |
private function printMatrix($m)
array | $m |
wild |
private function printTypeMatrix($t)
array | $t |
wild |
private function applySmoothing($str, $full)
$str | ||
$full |
wild |