Description Usage Arguments Examples
Reduce an existing statistical shape model either to first n PCs or by explained Variance
1 2 3 4 | statismoReducedVariance(model, exVar = 1, npc = 0, scores = TRUE)
## S4 method for signature 'pPCA'
statismoReducedVariance(model, exVar = 1, npc = 0)
|
model |
statistical shape model of class 'pPCA' |
exVar |
restricts model by explained variance - with |
npc |
number of PCs retained in the model (overrides |
scores |
logical: if TRUE, the scores for the reduced model will be returned. |
1 2 3 4 5 | require(Morpho)
data(boneData)
align <- rigidAlign(boneLM)$rotated
mymod <- statismoBuildModel(align,representer=align[,,1],sigma=2,scale=TRUE)
reducemod <- statismoReducedVariance(mymod,0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.