statismoReducedVariance: Reduce an existing statistical shape model

Description Usage Arguments Examples

Description

Reduce an existing statistical shape model either to first n PCs or by explained Variance

Usage

1
2
3
4
statismoReducedVariance(model, exVar = 1, npc = 0, scores = TRUE)

## S4 method for signature 'pPCA'
statismoReducedVariance(model, exVar = 1, npc = 0)

Arguments

model

statistical shape model of class 'pPCA'

exVar

restricts model by explained variance - with 0 < exVar < 1

npc

number of PCs retained in the model (overrides exVar)

scores

logical: if TRUE, the scores for the reduced model will be returned.

Examples

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)

zarquon42b/RvtkStatismo documentation built on May 4, 2019, 9:09 p.m.