getMeanDVH(x, fun=list(mean=mean, median=median, sd=sd),
cumul=TRUE, thin=1, byPat=TRUE, patID=NULL, structure=NULL,
interp=c("linear", "spline", "smoothSpl"), fixed=TRUE)
## S3 method for class 'DVHs':
getMeanDVH(x, fun=list(mean=mean, median=median, sd=sd),
cumul=TRUE, thin=1, byPat=TRUE, patID=NULL, structure=NULL,
interp=c("linear", "spline", "smoothSpl"), fixed=TRUE)
## S3 method for class 'DVHLst':
getMeanDVH(x, fun=list(mean=mean, median=median, sd=sd),
cumul=TRUE, thin=1, byPat=TRUE, patID=NULL, structure=NULL,
interp=c("linear", "spline", "smoothSpl"), fixed=TRUE)
## S3 method for class 'DVHLstLst':
getMeanDVH(x, fun=list(mean=mean, median=median, sd=sd),
cumul=TRUE, thin=1, byPat=TRUE, patID=NULL, structure=NULL,
interp=c("linear", "spline", "smoothSpl"), fixed=TRUE)
DVHs
), multiple DVHs from one patient/structure (object of class DVHLst
), or multiple DVHs from many patients/structures (object of class DVHLstLst
). See
list
of functions that should be applied to yield 1 point-wise DVH measure. Functions must have exactly 1 return value.logical
. Get point-wise mean and SD for cumulative or differential (per unit dose) DVH?numeric
. The number of DVH nodes (dose values) is reduced by 1/thin
of the maximum number of nodes in x
before interpolating and averaging.logical
. Relevant if multiple DVHs are given. byPat=TRUE
means that for each patient, DVHs for multiple structures are averaged point wise. byPat=FALSE
means that for each structure, DVHs for multiple patients averagcharacter
vector. Include DVHs for these patients only when calculating mean/SD. If missing, all patients are used. Can be a regular expression with fixed=FALSE
, see regex
.character
vector. Include DVHs for these structures only when calculating mean/SD. If missing, all structures are used. Can be a regular expression with fixed=FALSE
, see regex
.character
. Interpolation method for the differential DVH. "asis"
and "linear"
for no interpolation. "spline"
for spline interpolation using splinefun
logical
. Use fixed=FALSE
for regular expression matching of patID
and structure
.byPat=TRUE
) or over patients (byPat=FALSE
) including the point-wise standard deviation or other measures as controlled by fun
.x
are first linearly interpolated with convertDVH
using the same set of nodes.showDVH
,
convertDVH
res1 <- getMeanDVH(dataMZ, byPat=TRUE, structure=c("HEART", "AMYOCL"))
head(res1)
# average differential DVHs, use kernel smoothing
# matches patients P123 and P234
res2 <- getMeanDVH(dataMZ, fun=list(min=min, max=max),
cumul=FALSE, byPat=FALSE,
patID="23", interp="smoothSpl", fixed=FALSE)
head(res2)
Run the code above in your browser using DataLab