Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alignment ¶
Alignment captures the alignment of two strings with the accoriding trace of edit operations.
func NewAlignment ¶
NewAlignment creates a new Alignment from two and a given trace. The error distance is calculated using the trace directly.
type Lev ¶
type Lev struct {
// contains filtered or unexported fields
}
Lev holds two aligned strings and the weight matrix.
func (*Lev) EditDistance ¶
EditDistance calculates the minimal edit distance between the two given strings.
Click to show internal directories.
Click to hide internal directories.