An internal function(written in C++) that calculates p-variation.
pvarC(x, p, LSI = 3L)An object of the class pvar.
a (non-empty) numeric vector of data values or an object of the class pvar.
a positive number indicating the power p in p-variation.
a length of small interval. It must be a positive odd number. This parameter do not have effect on final result, but might influence the speed of calculation.
This is a waking horse of this packages, nonetheless, users should
not call this function directly (rather use pvar).