AddPvar {pvar} | R Documentation |
Addition of p-variation
Description
Merges two objects of p-variation and effectively recalculates the p-variation of joined sample.
Usage
AddPvar(PV1, PV2, AddIfPossible = TRUE)
Arguments
PV1 |
an object of the class |
PV2 |
an object of the class |
AddIfPossible |
|
Details
Note: a short form of AddPvar(PV1, PV2
is PV1 + PV2
.
Value
An object of the class pvar
. See pvar
.
Examples
### creating two pvar objects:
x = rwiener(1000)
PV1 = pvar(x[1:500], 2)
PV2 = pvar(x[500:1000], 2)
layout(matrix(c(1,3,2,3), 2, 2))
plot(PV1)
plot(PV2)
plot(AddPvar(PV1, PV2))
layout(1)
### AddPvar(PV1, PV2) is eqivavalent to PV1 + PV2
IsEqualPvar(AddPvar(PV1, PV2), PV1 + PV2)
[Package pvar version 2.2.7 Index]