Extract.brob {hyperdirichlet} | R Documentation |
Methods for "["
and "[<-"
, i.e., extraction or
subsetting of hyperdirichlet objects.
x |
Object of class hyperdirichlet |
i |
elements to extract or replace |
value |
replacement value |
Always returns an object of class hyperdirichlet.
The replacement method “[<-
” invokes the validity checking
method .hd.valid()
by default; this may be time-consuming for
hyperdirichlet objects of high dimension.
Users may use the functional form for replacement to override this
behaviour; the method takes recalculate
and a validated
arguments, defaulting to FALSE
, that may be set if desired.
Robin K. S. Hankin
a <- uniform(4) a[5] <- 1.2 a <- as.hyperdirichlet(a, TRUE) # recommended way to calculate NC