IsEqualPvar: Test if two 'pvar' objects are equivalent.

View source: R/p-variation.R

IsEqualPvarR Documentation

Test if two 'pvar' objects are equivalent.

Description

Two pvar objects are considered to be equal if they have the same x, p, value and the same value of x in the points of partition (the index of partitions are not necessary the same). All other tributes like dname or TimeLabel are not important.

Usage

IsEqualPvar(pv1, pv2)

Arguments

pv1

an object of the class pvar.

pv2

an object of the class pvar.

Examples

x <- rwiener(100)
pv1 <- pvar(x, 2)
pv2 <- pvar(x[1:50], 2) + pvar(x[50:101], 2)
IsEqualPvar(pv1, pv2)

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