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 |