stat_segm {segclust2d} | R Documentation |
Calculate statistics on a given segmentation
Description
stat_segm
calculates statistics of a given segmentation : mean and
variance of the different states. it also creates standard objects for plot.
Usage
stat_segm(
data,
diag.var,
order.var = NULL,
param = NULL,
seg.type = NULL,
nseg
)
Arguments
data |
the data.frame with the different variable |
diag.var |
names of the variables on which statistics are calculated |
order.var |
names of the variable with which states are ordered |
param |
parameters of output segmentation |
seg.type |
either 'hybrid' or 'dynprog' |
nseg |
number of segment chosen |
Value
a list which first element is a data.frame with states of the different segments and which second element is a data.frame with mean and variance of the different states
Examples
## Not run:
#res.segclust is a result of a segmentation-clustering algorithm
param <- res.segclust$param[["3 class"]]
nseg = 10
out <- stat_segm(data, diag.var = c("dist","angle"),
order.var = "dist", param = param, nseg=nseg, seg.type = "segclust")
## End(Not run)
[Package segclust2d version 0.3.3 Index]