squareN: Finding Neighborhood Locations

Description Usage Arguments Value Author(s) References Examples

View source: R/squareN.R

Description

Starting with the intersection of ef and fe alignment one by one and finding the square neighbors including the union and intersection, recursively.

Usage

1
squareN(fe, ef, n_row)

Arguments

fe

an integer vector.

ef

an integer vector.

n_row

an integer. Number of rows of an initial matrix.

Value

An integer vector.

Author(s)

Neda Daneshgar and Majid Sarmad.

References

Koehn P. (2010), "Statistical Machine Translation.", Cambridge University, New York.

Examples

1
2
3
4
fe = c(1,4,2,4,2)
ef = c(3,2,1,5)
n_row = 4
squareN (fe, ef, n_row)

word.alignment documentation built on May 21, 2017, 12:56 a.m.

Search within the word.alignment package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.