If either X or Y is missing, it is generated as a set of
d-dimensional points in the unit cube, n points in X,
m points in Y. If X is given, then n
is ignored. Similary with Y and m. If both are given,
then d is ignored. There is no checking that the provided X
and/or Y matrices conform to the n,m,d values given in the
call.
The inter-point distance matrix is computed using dist
as proxy::dist(Y,X,method=method).
If radius is not provided, it is
chosen uniformly at random from the unique values of the distance matrix
if uniformly is FALSE, and uniformly from between the minimum and
maximum distance if uniformly is true. As a rule, one should not
let this function choose the radius, but the code will do so if you wish.
The matrix is then thresholded by the
radius, resulting in a binary matrix which is then used as the
mxn incidence matrix for the hypergraph.