Description Usage Arguments Details Value Author(s) References See Also Examples
Creates a new XPtr
of size n
and initialize it with the constant
k
. Objects of class XPtr
are just externalptr
with
attributes. They are used instead of classical dist
to avoid copies.
This makes RRP to work on bigger data sets.
1 | newXPtr(n, k = 0)
|
n |
the size of the object |
k |
the initializing constant |
You should think about XPtr
as dist
objects, i.e. a representation
of a symmetric matrix with 0's on the diagonals. XPtr
are stored as
lower diagonal matrices. The size n
is the dimension of the corresponding
matrix, say M
, hence M
is intended as a n
* n
matrix. The real length of the XPtr
is n*(n-1)/2
.
returns a new XPtr
if there is enough memory.
S.M. Iacus
Iacus, S.M., Porro, G. (2006) Random Recursive Partitioning and its applications to missing data imputation, classification and average treatment effect estimation, submitted.
1 2 3 | a <- newXPtr(10, 1)
(XPtrToDist(a))
as.dist(matrix(1,10,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.