Estimate Values for
Missing Precipitation Data
estimateForMissingPrecipValues(integer
maxMissingAllowed)
Linearly interpolate estimates for missing values in the current regular or irregular
interval time series data set. The current data set is expected to be cumulative
precipitation and the data must be of type “INST-CUM”. Use the
estimateForMissingValues method for filling missing values in other types of time series
data.
The rules used for interpolation of missing cumulative precipitation data are:
§ If the values bracketing the missing period are increasing with time, only interpolate if the number of successive missing values does not exceed the value of maxMissingAllowed.
§ If the values bracketing the missing period are decreasing with time, do not estimate for any missing values.
§ If the values bracketing the missing period are equal, then estimate any number of missing values.
See also: estimateForMissingValues()
Parameters:
maxMissingAllowed - An integer value for the maximum number of consecutive
missing values between valid values
Example:
newPrecip =
tsPrecip.estimateForMissingPrecipValues(5)
Returns: A new TimeSeriesMath object