<< CL_stumpS Math CL_unitVector >>

CelestLab >> Math > CL_unMod

CL_unMod

Makes data continuous (removes "modulo")

Calling Sequence

yc = CL_unMod(y, a, [, x, slope])

Description

Parameters

y:

Vector of real values (ordinates) (1xN)

a:

Positive value (= "modulo") (1x1)

x:

(optional) Vector of real values (abscissae). Default is []. (1xN)

slope:

(optional) Approximate value of the slope = dy/dx. Default is []. (1x1 or 1xN)

yc :

y made continuous (1xN)

Authors

Examples

// x: finely sampled
x = 0:0.2:30;
y = CL_rMod(x, 0, 2*%pi);
CL_unMod(y, 2*%pi) - x  // => 0

// x: loosely sampled
x = x(1:20:$);
y = y(1:20:$);
CL_unMod(y, 2*%pi, x, 1) - x // => 0

Report an issue
<< CL_stumpS Math CL_unitVector >>