| createBayes | R Documentation | 
create an object of class BayesDeform to be used in gaussMatch and AmbergRegister
createBayes(
  model,
  sdmax = numeric(0),
  mahalanobis = "chisq",
  ptValueNoise = 2,
  wt = NULL,
  align = TRUE,
  shrinkfun = NULL,
  initparams = NULL
)
model | 
 a model of class pPCA created with package RvtkStatismo  | 
sdmax | 
 numeric or vector of numerics (length must be of value =<   | 
mahalanobis | 
 parameter according to mahaprob in function RvtkStatismo::PredictSample from RvtkStatismo  | 
ptValueNoise | 
 parameter according to ptValueNoise in function RvtkStatismo::statismoConstrainModel from RvtkStatismo  | 
wt | 
 numeric: a weight put on the closest model configuration. E.g. if wt = 2 the deformation will be 0.33*closestPoints + 0.66*most probable model shape. This can either be a constant scalar (that might be modified in each iteration by a shrinkage function - see below) or a vector of length sdmax.  | 
align | 
 logical: if the target mesh is already aligned to the model, align can be set to FALSE.  | 
shrinkfun | 
 a two-valued function for the generation of the weight in the i-th iteration. See examples below.  | 
initparams | 
 initial estimation of the model parameters  | 
returns a list of class "BayesDeform"
## Not run: 
shrinkfun <- function(x,i){x <- x*0.9^i; return(x)}
# for wt=0.5 this will produce 
# 
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.