residualError {CellNOptR} | R Documentation

## Compute the residual error for a dataset

### Description

This function takes in a CNOlist and computes the residual error, which is the minimum error between the scaled continuous data and a binary boolean approximation of this data.

### Usage

    residualError(CNOlist)

### Arguments

`CNOlist` | a CNOlist

### Details

Be aware that it is expected that `$valueSignals[[1]]` holds t0 (all signals=0) and `$valueSignals[[2]]` holds t1, `$valueSignals[[3]]` holds t2 and so on. The output is a list of residual errors at each time greater than 2. In addition, the total error is stored. For back compatibility, an additional field called t1andt2 is stored (NA is only t1 provided).

### Value

a vector with named entries t1, t2, ...tn, t1andt2 and total. If only t1 is provided, t1andt2 is set to NA. The field t1andt2 may be removed in the future. Use the field called total instead.

### Author(s)

C. Terfve, T. Cokelaer

### See Also

makeCNOlist, normaliseCNOlist, getFit

### Examples

    data(CNOlistToy,package="CellNOptR")
    resECNOlistToy<-residualError(CNOlistToy)

[Package CellNOptR version 1.30.0 Index]