Description Usage Arguments Value
View source: R/partialOrders.R
Find the neighbor points of the rows of a matrix x
within
the rows of X
in the componentwise partial order. That is, for each
row x[i, ]
, find all indices k
such that either x[i, ] >=
X[k, ]
in all components and x[i, ] >= X[j, ] >= X[k, ]
holds for no
j
different from k
, or x[i, ] <= X[k, ]
in all
components and x[i ,] <= X[j, ] <= X[k, ]
holds for no j
different from k
.
1 | neighborPoints(x, X, orderX)
|
x |
numeric matrix with at least two columns. |
X |
numeric matrix with same number of columns as |
orderX |
output of |
Lists of length nrow(x)
giving for each x[i, ]
the indices
of the smaller and the greater neighbor points within the rows of X
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.