effective.power: Effective Power computation

Description Usage Arguments Details Value Author(s) See Also

Description

Process the work information and computes the effective power using one of the possible strategies.

Usage

1
effective.power(work, baseline="both", FUN=median)

Arguments

work

a data frame containing work unit data as produced by the extract.power

baseline

a character string indicating how to compute the baseline power; see Details below. Default is "both".

FUN

the function used to aggregate the baseline values

Details

The effective power is computed by subtracting a baseline from the real power of the work unit.

The baseline can be computed in several different ways as indicated by the baseline argument:

"both"

uses both the sleep phases preceding and following the work unit.

"left"

uses the sleep phases preceding (i.e. on the left) the work unit.

"right"

uses the sleep phases following (i.e. on the right) the work unit.

"gboth"

uses an aggregated value computed from both the sleep phases preceding and following all the work units.

"gleft"

uses an aggregated value computed fromthe sleep phases preceding (i.e. on the left) all the work units.

"gright"

uses an aggregated value computed from the sleep phases following (i.e. on the right) all the work units.

"gmin"

uses the global minimum value among the sleep phases either before or after all the work units.

"0"

does not use any baseline (i.e. uses 0 as baseline).

The aggregation of two or more power levels is computed using the function specified as argument FUN

Value

The function returns a data frame that consists in the original data frame work with a column P containing the computed effective power values. If such a column already exists in the data frame it is overwritten.

Author(s)

Marco Torchiano http://softeng.polito.it/torchiano/

See Also

extract.power


SoftengPoliTo/powtran documentation built on April 16, 2020, 1:47 a.m.