neighborPoints: Neighbor points with respect to componentwise order

Description Usage Arguments Value

View source: R/partialOrders.R

Description

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.

Usage

1
neighborPoints(x, X, orderX)

Arguments

x

numeric matrix with at least two columns.

X

numeric matrix with same number of columns as x.

orderX

output of compOrd(X).

Value

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.


isodistrreg documentation built on March 22, 2021, 5:06 p.m.