areaIntegrator {DIAlignR}R Documentation

Calculates area between signal-boundaries.

Description

This function sums all the intensities between left-index and right-index.

Usage

areaIntegrator(l1, leftIdx, rightIdx)

Arguments

l1

(list) A list of vectors. All vectors must be of same length.

leftIdx

(numeric) Left index (0-based) of the boundary.

rightIdx

(numeric) Right index (0-based) of the boundary.

Value

area (numeric).

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca ORCID: 0000-0003-3500-8152 License: (c) Author (2019) + MIT Date: 2019-03-08

Examples

l1 <- list(1:10, 1:10, 1:10)
areaIntegrator(l1, leftIdx = 4, rightIdx = 6) # 54

[Package DIAlignR version 0.99.12 Index]