curvesync

Creates a new x vector from the x vectors of multiple curves in the range between the maximum of all minima and the minimum of all maxima. All curves must have an overlapping x range. The returned vector contains only the points of the vector which has the most points in this range.

Syntax

curvesync("option", mathref1, mathref2,...mathrefn)

Argument

"option"
The "option" argument can be one of two types, range or list.
range
Each pair of math references, or curves, defining a range.
range is inclusive. For example, curvesum("range", p1w1c1.y, p1w1c4.y) mulitplies the Y values of four curves (curve 1 through curve 4 on page 1 window 1).
range always has an equal number of arguments: 2, 4, 6, and so on.
list
The operation is performed on each curve math reference that follows. Every vector will be added.
list can have any number of arguments: 1, 2, 3, 4, and so on.
mathref1, mathref2,...mathrefn
The curve math reference. The parameters must be legal math references to vectors of XY curves. For example:
p#w#c#.x/y
Relative curve math references to the same window such as c1.x are not supported.

Example

To add curves using curvesum:
x vector = curvesync("range", p1w1c1.x, p1w1c7.x, p1w1c10.x, p1w1c10.x)
y vector = curvesum("range", p1w1c1.y, p1w1c7.y, p1w1c10.y, p1w1c10.y)
To multiply curves using curveproduct:
x vector = curvesync("range", p1w1c1.x, p1w1c7.x, p1w1c10.x, p1w1c10.x)
y vector = curveproduct("range", p1w1c1.y, p1w1c7.y, p1w1c10.y, p1w1c10.y)