|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ErrorEstimate
public class ErrorEstimate
ErrorEstimate is the immutable VisAD class for statistics about a value or array of values.
Constructor Summary | |
---|---|
ErrorEstimate(double[] value,
double error,
Unit u)
construct an ErrorEstimate for an array of values with an error |
|
ErrorEstimate(double[] value,
Unit u,
int op,
ErrorEstimate a,
ErrorEstimate b,
int error_mode)
construct Error for an array of values that is the result of a binary operator; a and b are the ErrorEstimate-s for the operands |
|
ErrorEstimate(double[] value,
Unit u,
int op,
ErrorEstimate a,
int error_mode)
construct Error for an array of values that is the result of a unary operator; a is the ErrorEstimate for the operand |
|
ErrorEstimate(double error,
double mean,
long number,
Unit u)
construct an error distribution of number values with given mean and error (variance), in Unit unit Note that the mean and error
parameters are reversed in this method |
|
ErrorEstimate(double mean,
double error,
Unit u)
construct an error distribution of 1 value with given mean and error (variance), in Unit unit |
|
ErrorEstimate(double value,
Unit u,
int op,
ErrorEstimate a,
ErrorEstimate b,
int error_mode)
construct an ErrorEstimate for a value that is the result of a binary operator; a and b are the ErrorEstimate-s for the operands |
|
ErrorEstimate(double value,
Unit u,
int op,
ErrorEstimate a,
int error_mode)
construct an ErrorEstimate for a value that is the result of a unary operator; a is the ErrorEstimate for the operand |
|
ErrorEstimate(ErrorEstimate field_error,
ErrorEstimate sample_error,
double val,
int inc)
construct an ErrorEstimate from a Field ErrorEstimate, a sample ErrorEstimate, the sample value, and an increment for NumberNotMissing; used by FlatField.setSample |
|
ErrorEstimate(float[] value,
double error,
Unit u)
construct an ErrorEstimate for an array of values with an error |
|
ErrorEstimate(float[] value,
Unit u,
int op,
ErrorEstimate a,
ErrorEstimate b,
int error_mode)
construct Error for an array of values that is the result of a binary operator; a and b are the ErrorEstimate-s for the operands |
|
ErrorEstimate(float[] value,
Unit u,
int op,
ErrorEstimate a,
int error_mode)
construct Error for an array of values that is the result of a unary operator; a is the ErrorEstimate for the operand |
Method Summary | |
---|---|
int |
compareTo(Object obj)
Compares this error estimate to another. |
static ErrorEstimate[] |
copyErrorsArray(ErrorEstimate[] errors)
copy a ErrorEstimate[] array; this is a helper for Set, FlatField, etc |
double |
getErrorValue()
Get the variance of this error distribution |
double |
getMean()
Get the mean value for this error distribution |
long |
getNumberNotMissing()
Get the number of values in this error distribution |
Unit |
getUnit()
Get the Unit for this error distribution. |
boolean |
isMissing()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorEstimate(double error, double mean, long number, Unit u)
mean
and error
parameters are reversed in this method
public ErrorEstimate(double mean, double error, Unit u)
public ErrorEstimate(ErrorEstimate field_error, ErrorEstimate sample_error, double val, int inc) throws VisADException
VisADException
public ErrorEstimate(double value, Unit u, int op, ErrorEstimate a, ErrorEstimate b, int error_mode) throws VisADException
VisADException
public ErrorEstimate(double value, Unit u, int op, ErrorEstimate a, int error_mode) throws VisADException
VisADException
public ErrorEstimate(double[] value, double error, Unit u)
public ErrorEstimate(float[] value, double error, Unit u)
public ErrorEstimate(double[] value, Unit u, int op, ErrorEstimate a, ErrorEstimate b, int error_mode) throws VisADException
VisADException
public ErrorEstimate(float[] value, Unit u, int op, ErrorEstimate a, ErrorEstimate b, int error_mode) throws VisADException
VisADException
public ErrorEstimate(double[] value, Unit u, int op, ErrorEstimate a, int error_mode) throws VisADException
VisADException
public ErrorEstimate(float[] value, Unit u, int op, ErrorEstimate a, int error_mode) throws VisADException
VisADException
Method Detail |
---|
public static ErrorEstimate[] copyErrorsArray(ErrorEstimate[] errors)
public boolean isMissing()
public double getMean()
public double getErrorValue()
public long getNumberNotMissing()
public Unit getUnit()
public String toString()
toString
in class Object
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- The other error estimate. May be null
.
obj == null
, then a positive value
is returned. An ErrorEstimate with no unit is
considered less than an ErrorEstimate with a
unit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |