|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.util.Stats
public class Stats
Method Summary | |
---|---|
static double |
bias(double[] pred,
double[] valid)
|
static double |
err_sum(double[] validation,
double[] prediction)
|
static double |
gradient(double[] xData,
double[] yData)
|
static double |
intercept(double[] xData,
double[] yData)
|
static double |
ioa(double[] prediction,
double[] validation,
double pow)
Calculates the index of agreement (ioa) between a test data set and a verification data set after Willmot & Wicks (1980). |
static double |
lag1(double[] vals)
Returns the lag-1 autocorrelation of a dataset; |
static int |
length(double[] vals)
|
static double |
max(double[] vals)
|
static double |
mean(double[] vals)
|
static double |
meandev(double[] vals)
|
static double |
median(double[] vals)
|
static double |
min(double[] vals)
|
static double |
nashsut_log(double[] prediction,
double[] validation,
double pow)
Calculates the efficiency between the log values of a test data set and a verification data set after Nash & Sutcliffe (1970). |
static double |
nashsut(double[] prediction,
double[] validation,
double pow)
Calculates the efficiency between a test data set and a verification data set after Nash & Sutcliffe (1970). |
static double |
norm_vec(double x,
double y,
double z)
Normalized Vector. |
static double |
product(double[] vals)
|
static double |
quantile(double[] vals,
double phi)
|
static double |
r2(double[] xData,
double[] yData)
|
static double |
random(double min,
double max)
Generate a random number in a range. |
static double |
range(double[] vals)
|
static double |
rmse(double[] pred,
double[] valid)
|
static double |
round(double val,
int places)
Round a double value to a specified number of decimal places. |
static float |
round(float val,
int places)
Round a float value to a specified number of decimal places. |
static double |
stddev(double[] vals)
|
static double |
stderr(double[] vals)
|
static double |
sum(double[] vals)
|
static double |
variance(double[] vals)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double norm_vec(double x, double y, double z)
public static double max(double[] vals)
public static double min(double[] vals)
public static double range(double[] vals)
public static int length(double[] vals)
public static double median(double[] vals)
public static double mean(double[] vals)
public static double stddev(double[] vals)
public static double stderr(double[] vals)
public static double variance(double[] vals)
public static double meandev(double[] vals)
public static double sum(double[] vals)
public static double product(double[] vals)
public static double quantile(double[] vals, double phi)
public static double lag1(double[] vals)
public static double rmse(double[] pred, double[] valid)
public static double bias(double[] pred, double[] valid)
public static double nashsut(double[] prediction, double[] validation, double pow)
prediction
- the simulation data setvalidation
- the validation (observed) data setpow
- the power for the deviation terms
public static double nashsut_log(double[] prediction, double[] validation, double pow)
prediction
- the simulation data setvalidation
- the validation (observed) data setpow
- the power for the deviation terms
public static double err_sum(double[] validation, double[] prediction)
public static double ioa(double[] prediction, double[] validation, double pow)
prediction
- the test Data setvalidation
- the verification data setpow
- the power
public static double intercept(double[] xData, double[] yData)
public static double gradient(double[] xData, double[] yData)
public static double r2(double[] xData, double[] yData)
public static double round(double val, int places)
val
- the value to be rounded.places
- the number of decimal places to round to.
public static float round(float val, int places)
val
- the value to be rounded.places
- the number of decimal places to round to.
public static double random(double min, double max)
min
- max
-
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |