public class Statistics
extends java.lang.Object
| Constructor and Description |
|---|
Statistics() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeConfidenceLimits(int nyr,
double probFlow,
double[] probFlowExceeds)
Computes confidence limits for a given exceedance probability
given an ordered set derived from observations of an idependent
random variable.
|
static int |
computeCurveMoments(int nuOrds,
double[] prob,
double[] flow,
double[] results)
Calculates the mean and standard deviation for the specified frequency curve
by approximating the integral definition.
|
static double |
getLP3Deviate(double stdNormDev,
double skew)
Return the Log Pearson Type III deviate for the input
standard normal deviate and skew.
|
static double |
getNormalStandardDeviate(double lp3Dev,
double skew)
Return the Standard Normal deviate for the input
Log Pearson Type III deviate and skew.
|
static double |
getNormalStdDeviate(double prob)
getNormalStdDeviate returns the normal standard deviate for an input probability.
|
static boolean |
isMonotonicallyDecreasing(int nval,
double[] x)
Returns boolean indicating if x array is monotonically decreasing.
|
static boolean |
isMonotonicallyIncreasing(int nval,
double[] x)
Returns boolean indicating if x array is monotonically increasing.
|
static void |
main(java.lang.String[] args) |
static boolean |
orderArray(int nval,
char direction,
double[] x,
double[] y)
Orders a paired array so that the
x array is monotonically increasing
or decreasing. |
static void |
printResult(java.lang.String s,
double devIn,
double devOut)
Print Current Deviate Values
|
static double |
roundIt2(float sp,
int nsig)
Rounds single precision floating point number to nsig digits and stores in double.
|
static double |
roundIt3(float sp,
int nsig)
Rounds single precision floating point number to nsig digits and stores in double.
|
static double |
roundRealToDouble(float sp)
Rounds single precision floating point number to 7 digits and stores in double
|
static double |
roundRealToDouble(float sp,
int numSignificantDigits)
Rounds single precision floating point number and stores in double
|
public static double getNormalStdDeviate(double prob)
prob is exceedance probability between 0 and 1;public static boolean orderArray(int nval,
char direction,
double[] x,
double[] y)
x array is monotonically increasing
or decreasing.
nval Number of ordinates (rows) in the paired array.
direction Direction that the x array is ordered:
d or D Array will decrease.
i or I Array will increase.
x Array that will be ordered.
y Array whose ordiantes correspond to the x array.public static boolean isMonotonicallyDecreasing(int nval,
double[] x)
public static boolean isMonotonicallyIncreasing(int nval,
double[] x)
public static int computeCurveMoments(int nuOrds,
double[] prob,
double[] flow,
double[] results)
results is an array of 2 that returns the (1) mean, (2) standard deviation.public static int computeConfidenceLimits(int nyr,
double probFlow,
double[] probFlowExceeds)
public static double getLP3Deviate(double stdNormDev,
double skew)
public static double getNormalStandardDeviate(double lp3Dev,
double skew)
public static void printResult(java.lang.String s,
double devIn,
double devOut)
public static double roundRealToDouble(float sp,
int numSignificantDigits)
sp - Single Precision NumbernumSignificantDigits - Integer Numberpublic static double roundRealToDouble(float sp)
sp - Single Precision Numberpublic static double roundIt2(float sp,
int nsig)
sp - Input single precision number.nsig - Number of significant digits desired in output result.public static double roundIt3(float sp,
int nsig)
sp - Input single precision number.nsig - Number of significant digits desired in output result.public static void main(java.lang.String[] args)