View source: R/fitnessForOneComponent.R
fitnessForOneComponent | R Documentation |
Compute best pattern-based fitness for a single Simplivariate Component
fitnessForOneComponent(mat, dfMean, patternFunctions, penalty)
mat |
A numeric matrix (the component) |
dfMean |
Overall mean of the full data matrix |
patternFunctions |
Named list of functions for structure types |
penalty |
Named numeric vector of penalties per pattern type |
Numeric fitness value (higher is better)
m <- matrix(rnorm(100, mean = 10), nrow = 10)
f <- fitnessForOneComponent(m, mean(m), defaultPatternFunctions(),
c(constant = 0, additive = 1.0, multiplicative = 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.