public class ErrorEstimate extends Object implements Serializable, Comparable
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
public ErrorEstimate(double error, double mean, long number, Unit u)
mean
and error
parameters are reversed in this methodpublic 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
public static ErrorEstimate[] copyErrorsArray(ErrorEstimate[] errors)
public boolean isMissing()
public double getMean()
public double getErrorValue()
public long getNumberNotMissing()
public Unit getUnit()
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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.