ridgeline.diagnosis (propvector,muarray,Sigmaarray,
k=length(propvector),
ipairs="all", compute.ratio=TRUE,by=0.001,
ratiocutoff=NULL,ridgelineplot="matrix")
"all"
or list of vectors of two integers. If
ipairs="all"
, computations are carried out for all pairs of
components. Otherwise, ipairs gives the pairs of components for
which computations are carried out.TRUE
, a matrix of ridgeline
ratios is computed, see Hennig (2010a).NULL
, the
connection.matrix
(see below) is computed by checking whether
ridgeline ratios between components are below ratiocutoff
."none"
, "matrix"
,
"pairwise"
. If "matrix"
, a matrix of pairwise
ridgeline plots (see Hennig 2010b) will be plotted. If
"pairwise"
, pairwise ridgeline plots are plotted (yoconnection.matrix
.ratiocutoff=NULL
) or that their
ridgeline ratio is above ratiocutoff
. If ipairs!="all"
,
ignored pairs always have 0 in this matrix, same for
ratio.matrix
.ridgeline
, dridgeline
,
piridge
, piridge.zeroes
muarray <- cbind(c(0,0),c(0,0.1),c(10,10))
sigmaarray <- array(c(diag(2),diag(2),diag(2)),dim=c(2,2,3))
rd <-
ridgeline.diagnosis(c(0.5,0.3,0.2),muarray,sigmaarray,ridgelineplot="matrix",by=0.1)
# Much slower but more precise with default by=0.001.
Run the code above in your browser using DataLab