Description Usage Arguments Value See Also Examples
Cognate pairs and their determined alignment generated in ALINE format is used to find a set of optimal parameters in terms of number of correctly aligned pairs. A genetic algorithm is executed. It is called in the optimize.features function and is the core function for the optimization part.
1 | optimization.GA(Al, data, num, step = 5, plot = TRUE)
|
Al |
A 2*n matrix containing the correct alignment of the input |
data |
A 2*n matrix containing the pairs of words to be aligned |
num |
The size of initial population in the genetic algorithm |
step |
number of iterations for the genetic algorithm |
plot |
plot the convergence process of the algorithm |
R |
a list, containing |
performance |
The number of correctly aligned pairs |
optimized_parameters |
a matrix containing all the optimal parameters after the optimization |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.