AddPvarC: Addition of p-variation (in C++)

View source: R/RcppExports.R

AddPvarCR Documentation

Addition of p-variation (in C++)

Description

An internal function(written in C++) that merges two objects of pvar and effectively recalculates the p-variation of joined sample.

Usage

AddPvarC(PV1, PV2, AddIfPossible = TRUE)

Arguments

PV1

an object of the class pvar.

PV2

an object of the class pvar, which has the same p value as PV1 object.

AddIfPossible

logical. If TRUE (the default), then is is assumed, that two samples has common point. So, the end of PV1 and the begging of PV2 will be treated as one point if it has the same value.

Details

This is an internal function, therefore, users should not call this function directly (rather use AddPvar or pv1 + pv2).

Value

An object of the class pvar.


pvar documentation built on Oct. 18, 2022, 9:09 a.m.