RatioArea: RatioArea class

Description Usage Format Value Constructor Author(s) See Also

Description

An object which is a interface to calculate ratio between the profile area of two profiles.

The RatioArea object is needed to calculate the ratio between the profile area of two profile. A threshold and the two profiles are set during the RatioArea object creation. If different threshold or profiles are needed, the calculateMetric function should be used, with the new profiles and threshold passed as arguments to update those values inside the RatioArea object.

The threshold is the minimum profile area value accepted to calculate the ratio.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Value

The RatioArea$new function returns a RatioArea object which contains the information about the two profiles and the threshold used to calculate the metric. It can be used, as many times needed, to calculate the specified metric.

Constructor

Create a RatioArea object.

RatioArea$new(profile1, profile2, threshold = 1)

The threshold is the minimum profile area value accepted to calculate the ratio.

The RatioArea object inherites those functions:

Author(s)

Astrid Deschenes

See Also


similaRpeak documentation built on Nov. 8, 2020, 6:56 p.m.