fitness | R Documentation |
Fitness function with automatic pattern selection per Simplivariate Component
fitness(
string,
df,
dfMean,
penalty,
patternFunctions = defaultPatternFunctions(),
returnPatterns = FALSE,
...
)
string |
Vector with length nrow(df) + ncol(df): component labels for rows and columns (in this order). |
df |
Numeric matrix: full data. |
dfMean |
Scalar: global mean of df. |
penalty |
Named vector with penalty weights per pattern. |
patternFunctions |
Named list of functions returning pattern-based approximations. |
returnPatterns |
Logical: if TRUE, also returns chosen pattern per component. |
... |
Additional arguments passed to the GA functions |
Either total fitness (numeric), or list(fitness, componentPatterns) if returnPatterns = TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.