public class StreamRatingMath extends RatingMath
EXTRAPOLATE, FALSE, ITS_DELETE_INSERT, ITS_MERGE, LIN_INTERP, LIN_INTERP_TO_NONE, LOG_INTERP, NOT_ALLOWED, RTS_REPLACE_ALL, RTS_REPLACE_ALL_CREATE, RTS_REPLACE_ALL_DELETE, RTS_REPLACE_MISSING_VALUES_ONLY, RTS_REPLACE_WITH_NON_MISSING, STEP_NEAREST, STEP_NEXT, STEP_PREV, TRUE, UNDEFINED, UNDEFINED_DOUBLE, UNDEFINED_FLOAT, UNDEFINED_INT, UNDEFINED_LONG, UNDEFINED_TIME, USE_NEAREST, USE_NONE, USE_VALUE, USGS_INTERP| Constructor and Description |
|---|
StreamRatingMath() |
StreamRatingMath(PairedDataContainer[] pdc) |
StreamRatingMath(PairedDataMath[] pdm) |
StreamRatingMath(StreamRatingSeriesContainer srsc) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDetermineUnitSystem() |
boolean |
computationTimeIsSet() |
void |
convertMeasured1Units(java.lang.String units) |
void |
convertMeasured2Units(java.lang.String units) |
void |
convertMeasuredUnits(java.lang.String units) |
void |
convertRatedUnits(java.lang.String units) |
HecMath |
convertToEnglishUnits() |
void |
convertToEnglishUnitsInPlace() |
HecMath |
convertToMetricUnits() |
void |
convertToMetricUnitsInPlace() |
HecMath |
convertUnits(java.lang.String units) |
void |
convertUnitsInPlace(java.lang.String units) |
HecMath |
copy() |
static StreamRatingMath |
createStreamRatingMath(java.lang.String watershed,
java.lang.String location,
java.lang.String effectiveDate,
java.lang.String version,
java.lang.String heightUnits,
java.lang.String flowUnits,
double datum,
boolean heightIsElevation) |
static StreamRatingMath |
createStreamRatingMathFromXML(java.lang.String xml) |
boolean |
equals(java.lang.Object other) |
int |
getComputationTime() |
java.lang.String |
getComputationTimeString(int format) |
static StreamRatingSeriesContainer |
getContainerFromPairedData(PairedDataContainer[] pdc) |
DataContainer |
getData()
Copy the current DataContainer data in the HecMath object
into
container. |
void |
getData(DataContainer dc)
Copy the current DataContainer data in the HecMath object
into
container. |
double |
getElevationFromFlow(double elevation,
int time) |
double |
getElevationFromFlow(double elevation,
long time) |
double |
getElevationFromStage(double elevation,
int time) |
double |
getElevationFromStage(double elevation,
long time) |
TimeSeriesContainer |
getElevations(DataContainer srcDc) |
TimeSeriesMath |
getElevations(TimeSeriesMath source) |
double[] |
getElevationsFromFlows(double[] flows,
int[] times) |
double[] |
getElevationsFromFlows(double[] flows,
long[] times) |
double[] |
getElevationsFromStages(double[] stages,
int[] times) |
double[] |
getElevationsFromStages(double[] stages,
long[] times) |
java.lang.String[] |
getExpandedTable_millis(long time) |
java.lang.String[] |
getExpandedTable(int time) |
java.lang.String[] |
getExpandedTable(java.lang.String time) |
double |
getFlowFromElevation(double elevation,
int time) |
double |
getFlowFromElevation(double elevation,
long time) |
double |
getFlowFromStage(double stage,
int time) |
double |
getFlowFromStage(double stage,
long time) |
TimeSeriesContainer |
getFlows(DataContainer srcDc) |
TimeSeriesMath |
getFlows(TimeSeriesMath source) |
double[] |
getFlowsFromElevations(double[] elevations,
int[] times) |
double[] |
getFlowsFromElevations(double[] elevations,
long[] times) |
double[] |
getFlowsFromStages(double[] stages,
int[] times) |
double[] |
getFlowsFromStages(double[] stages,
long[] times) |
java.lang.String |
getLocation() |
java.lang.String |
getMeasured1Parameter() |
java.lang.String |
getMeasured1Units() |
java.lang.String |
getMeasured2Parameter() |
java.lang.String |
getMeasured2Units() |
java.lang.String |
getMeasuredParameter() |
java.lang.String |
getMeasuredUnits() |
java.lang.String |
getRatedParameter() |
java.lang.String |
getRatedUnits() |
hec.data.usgsRating.GeneralizedRating |
getRating(int index) |
int |
getRatingCount() |
int |
getSelectedIndex() |
double |
getStageFromElevation(double elevation,
int time) |
double |
getStageFromElevation(double elevation,
long time) |
double |
getStageFromFlow(double flow,
int time) |
double |
getStageFromFlow(double flow,
long time) |
TimeSeriesContainer |
getStages(DataContainer srcDc) |
TimeSeriesMath |
getStages(TimeSeriesMath source) |
double[] |
getStagesFromElevations(double[] elevations,
int[] times) |
double[] |
getStagesFromElevations(double[] elevations,
long[] times) |
double[] |
getStagesFromFlows(double[] flows,
int[] times) |
double[] |
getStagesFromFlows(double[] flows,
long[] times) |
java.lang.String |
getVersion() |
boolean |
isEnglish() |
boolean |
isMetric() |
boolean |
iteratesOnReverse() |
TimeSeriesContainer |
rate(DataContainer srcDc) |
TimeSeriesMath |
rate(TimeSeriesMath source) |
boolean |
selectedIndexIsSet() |
void |
setComputationTime_millis(long time) |
void |
setComputationTime(int time) |
void |
setComputationTime(java.lang.String time) |
void |
setData(DataContainer dc)
Set the DataContainer data for the current HecMath object.
|
void |
setDataTime_millis(long time) |
void |
setDataTime(int time) |
void |
setDataTime(java.lang.String time) |
void |
setInterpolateBehavior(int behavior) |
void |
setInterpolateBehavior(java.lang.String behavior) |
void |
setIterateOnReverse(boolean iterate) |
void |
setLinearBehavior() |
void |
setLocation(java.lang.String name)
set the Location part (B Part) of the DSS Pathname
|
void |
setMeasured1Parameter(java.lang.String name) |
void |
setMeasured1Units(java.lang.String units) |
void |
setMeasured2Parameter(java.lang.String name) |
void |
setMeasured2Units(java.lang.String units) |
void |
setMeasuredParameter(java.lang.String name) |
void |
setMeasuredUnits(java.lang.String units) |
void |
setOverflowBehavior(int behavior) |
void |
setOverflowBehavior(java.lang.String behavior) |
void |
setRatedParameter(java.lang.String name) |
void |
setRatedUnits(java.lang.String units) |
void |
setSelectedIndex(int index) |
void |
setStepBehavior() |
void |
setUnderflowBehavior(int behavior) |
void |
setUnderflowBehavior(java.lang.String behavior) |
void |
setUnits(java.lang.String name) |
void |
setUsgsBehavior() |
void |
setVersion(java.lang.String name)
set the Version part (F Part) of the DSS Pathname
|
hec.data.usgsRating.StreamRating |
streamRating(int index) |
java.lang.String |
toString() |
java.lang.String |
toString(int level) |
java.lang.String |
toXMLString() |
void |
unsetComputationTime() |
void |
unsetDataTime() |
void |
unsetSelectedIndex(int index) |
printErrorsabs, accumulation, add, add, applyMultipleLinearRegression, centeredMovingAverage, checkContainer, conicInterpolation, convertToIrregular, correlationCoefficients, cos, createInstance, createInstance, cyclicAnalysis, decayingBasinWetnessParameter, divide, divide, durationAnalysis, durationAnalysis, durationAnalysis, durationAnalysis, estimateForMissingPrecipValues, estimateForMissingValues, exponentiation, extractTimeSeriesDataForTimeSpecification, flowAccumulatorGageProcessor, forwardMovingAverage, generateDataPairs, generateRegularIntervalTimeSeries, generateRegularIntervalTimeSeries, generateRegularIntervalTimeSeries, getPath, getSelectedCurve, getStandardUnits, getUnits, interpolateDataAtRegularInterval, inverse, isMissing, isValid, isValid, kurtosisCoefficient, lastValidDate, lastValidValue, log, log10, max, maxDate, mean, med, mergePairedDataSets, mergeTimeSeries, min, minDate, mode, modifiedPulsRouting, multipleLinearRegression, multipleRegression, multiply, multiply, muskingumRouting, numberMissingValues, numberValidValues, olympicSmoothing, p1, p10, p2, p20, p25, p5, p75, p80, p90, p95, p98, p99, periodConstants, polynomialTransformation, polynomialTransformationWithIntegral, ratingTableInterpolation, replaceSpecificValues, reverseRatingTableInterpolation, round, roundOff, roundOffValue, screenWithForwardMovingAverage, screenWithMaxMin, screenWithMaxMin, setCurve, setCurve, setDPart, setEPart, setParameterPart, setPathname, setTimeInterval, setWatershed, shiftAdjustment, shiftInTime, sin, skewCoefficient, snapToRegularInterval, sqrt, standardDeviation, straddleStaggerRouting, subtract, subtract, successiveDifferences, sum, tan, timeDerivative, transformTimeSeries, transformTimeSeries, transformTimeSeries, transformTimeSeries, truncate, twoVariableRatingTableInterpolationpublic StreamRatingMath()
public StreamRatingMath(StreamRatingSeriesContainer srsc)
public StreamRatingMath(PairedDataMath[] pdm)
public StreamRatingMath(PairedDataContainer[] pdc)
public static StreamRatingMath createStreamRatingMathFromXML(java.lang.String xml) throws HecMathException
HecMathExceptionpublic static StreamRatingMath createStreamRatingMath(java.lang.String watershed, java.lang.String location, java.lang.String effectiveDate, java.lang.String version, java.lang.String heightUnits, java.lang.String flowUnits, double datum, boolean heightIsElevation)
public static StreamRatingSeriesContainer getContainerFromPairedData(PairedDataContainer[] pdc) throws HecMathException
HecMathExceptionpublic void setData(DataContainer dc) throws HecMathException
HecMathcontainer.setData in class HecMathdc - The DataContainer data to be used by this HecMath object.HecMathException - if container is null or not the
correct type of DataContainer.public void getData(DataContainer dc) throws HecMathException
HecMathcontainer.getData in class HecMathdc - The TimeSeriesContainer to receive the copy of data from
this time series.HecMathExceptionpublic DataContainer getData() throws HecMathException
HecMathcontainer.getData in class HecMathHecMathExceptionpublic HecMath copy() throws HecMathException
copy in class HecMathHecMathExceptionpublic boolean equals(java.lang.Object other)
equals in class RatingMathpublic boolean canDetermineUnitSystem()
canDetermineUnitSystem in class HecMathpublic java.lang.String getLocation()
getLocation in class RatingMathpublic void setLocation(java.lang.String name)
throws HecMathException
HecMathsetLocation in class HecMathname - the new location partHecMathExceptionpublic java.lang.String getVersion()
getVersion in class RatingMathpublic void setVersion(java.lang.String name)
throws HecMathException
HecMathsetVersion in class HecMathname - the new version partHecMathExceptionpublic java.lang.String getMeasuredParameter()
public void setMeasuredParameter(java.lang.String name)
throws HecMathException
HecMathExceptionpublic java.lang.String getMeasuredUnits()
public void setMeasuredUnits(java.lang.String units)
throws HecMathException
HecMathExceptionpublic void convertMeasuredUnits(java.lang.String units)
throws HecMathException
HecMathExceptionpublic java.lang.String getMeasured1Parameter()
getMeasured1Parameter in class RatingMathpublic void setMeasured1Parameter(java.lang.String name)
throws HecMathException
setMeasured1Parameter in class RatingMathHecMathExceptionpublic java.lang.String getMeasured1Units()
getMeasured1Units in class RatingMathpublic void setMeasured1Units(java.lang.String units)
throws HecMathException
setMeasured1Units in class RatingMathHecMathExceptionpublic void convertMeasured1Units(java.lang.String units)
throws HecMathException
convertMeasured1Units in class RatingMathHecMathExceptionpublic java.lang.String getMeasured2Parameter()
getMeasured2Parameter in class RatingMathpublic void setMeasured2Parameter(java.lang.String name)
throws HecMathException
setMeasured2Parameter in class RatingMathHecMathExceptionpublic java.lang.String getMeasured2Units()
getMeasured2Units in class RatingMathpublic void setMeasured2Units(java.lang.String units)
throws HecMathException
setMeasured2Units in class RatingMathHecMathExceptionpublic void convertMeasured2Units(java.lang.String units)
throws HecMathException
convertMeasured2Units in class RatingMathHecMathExceptionpublic java.lang.String getRatedParameter()
getRatedParameter in class RatingMathpublic void setRatedParameter(java.lang.String name)
throws HecMathException
setRatedParameter in class RatingMathHecMathExceptionpublic java.lang.String getRatedUnits()
getRatedUnits in class RatingMathpublic void setRatedUnits(java.lang.String units)
throws HecMathException
setRatedUnits in class RatingMathHecMathExceptionpublic void convertRatedUnits(java.lang.String units)
throws HecMathException
convertRatedUnits in class RatingMathHecMathExceptionpublic HecMath convertToEnglishUnits() throws HecMathException
convertToEnglishUnits in class HecMathHecMathExceptionpublic void convertToEnglishUnitsInPlace()
throws HecMathException
convertToEnglishUnitsInPlace in class RatingMathHecMathExceptionpublic HecMath convertToMetricUnits() throws HecMathException
convertToMetricUnits in class HecMathHecMathExceptionpublic void convertToMetricUnitsInPlace()
throws HecMathException
convertToMetricUnitsInPlace in class RatingMathHecMathExceptionpublic HecMath convertUnits(java.lang.String units) throws HecMathException
convertUnits in class RatingMathHecMathExceptionpublic void convertUnitsInPlace(java.lang.String units)
throws HecMathException
convertUnitsInPlace in class RatingMathHecMathExceptionpublic java.lang.String toString()
toString in class RatingMathpublic java.lang.String toString(int level)
toString in class RatingMathpublic java.lang.String toXMLString()
toXMLString in class RatingMathpublic boolean iteratesOnReverse()
public void setIterateOnReverse(boolean iterate)
public double getElevationFromFlow(double elevation,
long time)
throws HecMathException
HecMathExceptionpublic double getElevationFromFlow(double elevation,
int time)
throws HecMathException
HecMathExceptionpublic double getElevationFromStage(double elevation,
long time)
throws HecMathException
HecMathExceptionpublic double getElevationFromStage(double elevation,
int time)
throws HecMathException
HecMathExceptionpublic double getFlowFromElevation(double elevation,
long time)
throws HecMathException
HecMathExceptionpublic double getFlowFromElevation(double elevation,
int time)
throws HecMathException
HecMathExceptionpublic double getFlowFromStage(double stage,
long time)
throws HecMathException
HecMathExceptionpublic double getFlowFromStage(double stage,
int time)
throws HecMathException
HecMathExceptionpublic double getStageFromElevation(double elevation,
long time)
throws HecMathException
HecMathExceptionpublic double getStageFromElevation(double elevation,
int time)
throws HecMathException
HecMathExceptionpublic double getStageFromFlow(double flow,
long time)
throws HecMathException
HecMathExceptionpublic double getStageFromFlow(double flow,
int time)
throws HecMathException
HecMathExceptionpublic double[] getElevationsFromFlows(double[] flows,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getElevationsFromFlows(double[] flows,
int[] times)
throws HecMathException
HecMathExceptionpublic double[] getElevationsFromStages(double[] stages,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getElevationsFromStages(double[] stages,
int[] times)
throws HecMathException
HecMathExceptionpublic double[] getFlowsFromElevations(double[] elevations,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getFlowsFromElevations(double[] elevations,
int[] times)
throws HecMathException
HecMathExceptionpublic double[] getFlowsFromStages(double[] stages,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getFlowsFromStages(double[] stages,
int[] times)
throws HecMathException
HecMathExceptionpublic double[] getStagesFromElevations(double[] elevations,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getStagesFromElevations(double[] elevations,
int[] times)
throws HecMathException
HecMathExceptionpublic double[] getStagesFromFlows(double[] flows,
long[] times)
throws HecMathException
HecMathExceptionpublic double[] getStagesFromFlows(double[] flows,
int[] times)
throws HecMathException
HecMathExceptionpublic TimeSeriesContainer getElevations(DataContainer srcDc) throws HecMathException
HecMathExceptionpublic TimeSeriesMath getElevations(TimeSeriesMath source) throws HecMathException
HecMathExceptionpublic TimeSeriesContainer getFlows(DataContainer srcDc) throws HecMathException
HecMathExceptionpublic TimeSeriesMath getFlows(TimeSeriesMath source) throws HecMathException
HecMathExceptionpublic TimeSeriesContainer getStages(DataContainer srcDc) throws HecMathException
HecMathExceptionpublic TimeSeriesMath getStages(TimeSeriesMath source) throws HecMathException
HecMathExceptionpublic TimeSeriesContainer rate(DataContainer srcDc) throws HecMathException
HecMathExceptionpublic TimeSeriesMath rate(TimeSeriesMath source) throws HecMathException
HecMathExceptionpublic int getRatingCount()
getRatingCount in class RatingMathpublic hec.data.usgsRating.StreamRating streamRating(int index)
public hec.data.usgsRating.GeneralizedRating getRating(int index)
getRating in class RatingMathpublic boolean selectedIndexIsSet()
selectedIndexIsSet in class RatingMathpublic int getSelectedIndex()
throws HecMathException
getSelectedIndex in class RatingMathHecMathExceptionpublic void setSelectedIndex(int index)
throws HecMathException
setSelectedIndex in class RatingMathHecMathExceptionpublic void unsetSelectedIndex(int index)
unsetSelectedIndex in class RatingMathpublic boolean computationTimeIsSet()
computationTimeIsSet in class RatingMathpublic int getComputationTime()
throws HecMathException
getComputationTime in class RatingMathHecMathExceptionpublic java.lang.String getComputationTimeString(int format)
throws HecMathException
getComputationTimeString in class RatingMathHecMathExceptionpublic void setComputationTime_millis(long time)
throws HecMathException
setComputationTime_millis in class RatingMathHecMathExceptionpublic void setComputationTime(int time)
throws HecMathException
setComputationTime in class RatingMathHecMathExceptionpublic void setComputationTime(java.lang.String time)
throws HecMathException
setComputationTime in class RatingMathHecMathExceptionpublic void unsetComputationTime()
throws HecMathException
unsetComputationTime in class RatingMathHecMathExceptionpublic void setDataTime_millis(long time)
setDataTime_millis in class RatingMathpublic void setDataTime(int time)
setDataTime in class RatingMathpublic void setDataTime(java.lang.String time)
setDataTime in class RatingMathpublic void unsetDataTime()
unsetDataTime in class RatingMathpublic void setInterpolateBehavior(int behavior)
throws HecMathException
setInterpolateBehavior in class RatingMathHecMathExceptionpublic void setUnderflowBehavior(int behavior)
throws HecMathException
setUnderflowBehavior in class RatingMathHecMathExceptionpublic void setOverflowBehavior(int behavior)
throws HecMathException
setOverflowBehavior in class RatingMathHecMathExceptionpublic void setInterpolateBehavior(java.lang.String behavior)
throws HecMathException
setInterpolateBehavior in class RatingMathHecMathExceptionpublic void setUnderflowBehavior(java.lang.String behavior)
throws HecMathException
setUnderflowBehavior in class RatingMathHecMathExceptionpublic void setOverflowBehavior(java.lang.String behavior)
throws HecMathException
setOverflowBehavior in class RatingMathHecMathExceptionpublic void setStepBehavior()
throws HecMathException
HecMathExceptionpublic void setLinearBehavior()
throws HecMathException
HecMathExceptionpublic void setUsgsBehavior()
throws HecMathException
HecMathExceptionpublic java.lang.String[] getExpandedTable_millis(long time)
throws HecMathException
HecMathExceptionpublic java.lang.String[] getExpandedTable(int time)
throws HecMathException
HecMathExceptionpublic java.lang.String[] getExpandedTable(java.lang.String time)
throws HecMathException
HecMathException