paws
with homogeneous covariance structureThe function implements a vector-valued version the propagation separation approach that
uses patches instead of individuel voxels for comparisons in parameter space. Functionality is analog to function vaws
. Using patches allows for an improved
handling of locally smooth functions and in 2D and 3D for improved smoothness of
discontinuities at the expense of increased computing time.
vpaws(y, kstar = 16, sigma2 = 1, invcov = NULL, mask = NULL, scorr = 0, spmin = 0.25,
ladjust = 1, wghts = NULL, u = NULL, patchsize = 1)
vpawscov(y, kstar = 16, invcov = NULL, mask = NULL, scorr = 0, spmin = 0.25, ladjust = 1,
wghts = NULL, maxni = FALSE, patchsize = 1)
vpawscov2(y, kstar = 16, invcov = NULL, mask = NULL, scorr = 0, spmin = 0.25,
lambda = NULL, ladjust = 1, wghts = NULL, patchsize = 1,
data = NULL, verbose = TRUE)
function vpaws
returns
returns an object of class aws
with slots
y
dim(y)
numeric(0)
integer(0)
logical(0)
Estimates of regression function, length: length(y)
sequence of bandwidths employed
Mean absolute error for each iteration step if u was specified, numeric(0) else
Peak signal-to-noise ratio for each iteration step if u was specified, numeric(0) else
approx. variance of the estimates of the regression function. Please note that this does not reflect variability due to randomness of weights.Currently also uses factor 1/ni
instead of the correct
sum(wij^2)/ni^2
numeric(0)
numeric(0)
numeric(0), ratio of distances wghts[-1]/wghts[1]
0
effective hmax
provided or estimated error variance
scorr
family
shape
integer code for lkern, 1="Plateau", 2="Triangle", 3="Quadratic", 4="Cubic", 5="Gaussian"
effective value of lambda
effective value of ladjust
aws
memory
homogen
FALSE
"Constant"
numeric(0)
the arguments of the call to aws
If y
contained only information (condensed data) for positions within a mask, then the returned object only contains
results for these positions.
y
can be a full array of vector valued data, or, if mask
is provided,
be a matrix with columns corresponding to points/pixel/voxel within the mask. In the first case
dim(y)
determines the dimensionality and extend of the grid design, in the second
case tis information is obtained from the dimensions of mask
.
the first component varies over components of the response vector.
maximal number of steps to employ. Determines maximal bandwidth.
specifies a homogeneous error variance.
array (or matrix) of voxelwise inverse covariance matrixes, first index corresponds to upper diagonal inverse covariance matrix.
logical mask. All computations are restrikted to design poins within the mask.
The vector scorr
allows to specify a first order correlations of the noise for each coordinate direction,
defaults to 0 (no correlation).
determines the form (size of the plateau) in the adaptation kernel. Not to be changed by the user.
factor to increase the default value of lambda
wghts
specifies the diagonal elements of a weight matrix to adjust for different distances between grid-points
in different coordinate directions, i.e. allows to define a more appropriate metric in the design space.
a "true" value of the regression function, may be provided to
report risks at each iteration. This can be used to test the propagation condition with u=0
positive integer defining the size of patches. Number of grid points within the patch is (2*patchsize+1)^d
with d
denoting the dimensionality of the design.
require growing sum of weights
explicit value of lambda
optional vector-valued images to be smoothed using the weighting scheme of the last step
logical: provide information on progress.
Joerg Polzehl, polzehl@wias-berlin.de, https://www.wias-berlin.de/people/polzehl/
see vaws
.
Parameter y
The procedure is supposed to produce superior results if the assumption of a
local constant image is violated or if smooothness of discontinuities is desired.
Function vpawscov2
is intended for internal use in package qMRI
only.
J. Polzehl, K. Tabelow (2019). Magnetic Resonance Brain Imaging: Modeling and Data Analysis Using R. Springer, Use R! series. Appendix A. Doi:10.1007/978-3-030-29184-6.
J. Polzehl, K. Papafitsoros, K. Tabelow (2020). Patch-Wise Adaptive Weights Smoothing in R, Journal of Statistical Software, 95(6), 1-27. doi:10.18637/jss.v095.i06 .
See also vaws
, lpaws
, vawscov
,link{awsdata}
if (FALSE) {
setCores(2)
y <- array(rnorm(4*64^3),c(4,64,64,64))
yhat <- vpaws(y,kstar=20)
}
Run the code above in your browser using DataLab