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.
- list
- The operation is performed on each curve math reference that follows. Every vector will be added.
- mathref1, mathref2,...mathrefn
- The curve math reference. The parameters must be legal math references to vectors of XY curves. For example:
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)