|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.util.math.Statistics
Stx.
@Deprecated public class Statistics
Instances of the Statistics class provide a set of standard statistical variables.
| Constructor Summary | |
|---|---|
Statistics()
Deprecated. |
|
| Method Summary | |
|---|---|
static Statistics |
computeStatistics(Statistics[] statisticsArray,
Statistics statistics)
Deprecated. |
static Statistics |
computeStatisticsByte(byte[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsDouble(double[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsDouble(DoubleList values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsFloat(float[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsGeneric(Object values,
boolean unsigned,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Computes the statistics for the given values. |
static Statistics |
computeStatisticsInt(int[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsLong(long[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsShort(short[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsUByte(byte[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsUInt(int[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsULong(long[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
static Statistics |
computeStatisticsUShort(short[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. |
double |
getMax()
Deprecated. Gets the maximum value. |
double |
getMean()
Deprecated. Gets the mean value. |
double |
getMin()
Deprecated. Gets the minimum value. |
long |
getNum()
Deprecated. Gets the number of all considered values. |
long |
getNumTotal()
Deprecated. Gets the total number of all values. |
double |
getRatio()
Deprecated. Gets the ratio of the number of all considered values to all values. |
double |
getSqrSum()
Deprecated. Gets the sum of the squares of all considered values. |
double |
getStdDev()
Deprecated. Gets the standard deviation value. |
double |
getSum()
Deprecated. Gets the sum of all considered values. |
double |
getVar()
Deprecated. Gets the variance value. |
void |
set(long numTotal,
long num,
double sum,
double sqrSum,
double min,
double max)
Deprecated. Sets multiple base properties of this statistics container. |
protected void |
setMax(double max)
Deprecated. Sets the maximum value. |
protected void |
setMean(double mean)
Deprecated. Sets the mean value. |
protected void |
setMin(double min)
Deprecated. Sets the minimum value. |
protected void |
setNum(long num)
Deprecated. Sets the number of all considered values. |
protected void |
setNumTotal(long numTotal)
Deprecated. Sets the total number of all values. |
protected void |
setSqrSum(double sqrSum)
Deprecated. Sets the sum of the squares of all considered values. |
protected void |
setStdDev(double stdDev)
Deprecated. Sets the standard deviation value. |
protected void |
setSum(double sum)
Deprecated. Sets the sum of all considered values. |
protected void |
setVar(double var)
Deprecated. Sets the variance value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
| Method Detail |
|---|
public double getMin()
protected void setMin(double min)
min - the minimum valuepublic double getMax()
protected void setMax(double max)
max - the maximum valuepublic long getNumTotal()
protected void setNumTotal(long numTotal)
numTotal - the total numberpublic long getNum()
protected void setNum(long num)
num - the numberpublic double getRatio()
public double getSum()
protected void setSum(double sum)
sum - the sumpublic double getSqrSum()
protected void setSqrSum(double sqrSum)
sqrSum - the sum of the squarespublic double getMean()
protected void setMean(double mean)
mean - the mean valuepublic double getVar()
protected void setVar(double var)
var - the variance valuepublic double getStdDev()
protected void setStdDev(double stdDev)
stdDev - the standard deviation value
public void set(long numTotal,
long num,
double sum,
double sqrSum,
double min,
double max)
num), the sum (sum) and the square sum
(sqrSum) of all considered values.
numTotal - the total number of valuesnum - the number of the considerd valuessum - the sum of the considerd valuessqrSum - the square sum of the considerd valuesmin - the minimum of the considerd valuesmax - the maximum of the considerd values
public static Statistics computeStatisticsGeneric(Object values,
boolean unsigned,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
values - an array of a primitive type (such as float[]) or an instance of DoubleList. Must not be null.unsigned - if true, integer type arrays are considered to contain unsigned values, e.g. a
byte[] element is considered to be in the range 0...255validator - a validator used validate a the indexes 0...values.length - 1, must not be
null. Use IndexValidator.TRUE instead.statistics - the instance to be modified and returned. If null, a new instance will be created, set and
returned.
statistics is null, or the modified instance
statistics
public static Statistics computeStatisticsByte(byte[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsUByte(byte[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsShort(short[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsUShort(short[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsInt(int[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsUInt(int[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsLong(long[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsULong(long[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsFloat(float[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsDouble(double[] values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatisticsDouble(DoubleList values,
IndexValidator validator,
Statistics statistics,
com.bc.ceres.core.ProgressMonitor pm)
computeStatisticsGeneric(java.lang.Object, boolean, org.esa.beam.util.math.IndexValidator, org.esa.beam.util.math.Statistics, com.bc.ceres.core.ProgressMonitor)
public static Statistics computeStatistics(Statistics[] statisticsArray,
Statistics statistics)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||