Learn R Programming

SIMPLICA (version 1.0.0)

fitnessForOneComponent: Compute best pattern-based fitness for a single Simplivariate Component

Description

Compute best pattern-based fitness for a single Simplivariate Component

Usage

fitnessForOneComponent(mat, dfMean, patternFunctions, penalty)

Value

Numeric fitness value (higher is better)

Arguments

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

Examples

Run this code
m <- matrix(rnorm(100, mean = 10), nrow = 10)
f <- fitnessForOneComponent(m, mean(m), defaultPatternFunctions(),
               c(constant = 0, additive = 1.0, multiplicative = 0))

Run the code above in your browser using DataLab