Subtract a Constant
subtract(floating-point
constant)
Subtract the value constant from all valid values in the current time series or paired data set. For time series data, missing values are kept as missing.
For paired data, constant is subtracted from y-values only. Use the setCurve method to first select the paired data curve(s).
See also: subtract(HecMath hecMath); setCurve()
Parameters:
constant - A floating-point value.
Example: newDataSet = dataSet.subtract(5.3)
Returns: A new HecMath object of the same type as the current object.