|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.estimate.Estimate
public abstract class Estimate
Title: Estimate.java
Description: This is the abstract class for various types of estimates. Most methods here throw unsupported exceptions because this will often be the case in subclasses.
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
protected String |
comments
|
protected static String |
EST_MSG_FIRST_LAST_PROB_ZERO
|
protected static String |
EST_MSG_INVLID_RANGE
|
protected static String |
EST_MSG_MAX_LT_MIN
|
protected static String |
EST_MSG_NOT_NORMALIZED
|
protected static String |
EST_MSG_PROB_POSITIVE
|
protected static String |
EST_MSG_PROBS_NOT_INCREASING
|
protected static String |
FRACTILE_UNDEFINED
|
protected double |
max
|
protected static String |
MEDIAN_UNDEFINED
|
protected double |
min
|
protected static String |
MSG_ALL_PROB_ZERO
|
protected static String |
MSG_INVALID_STDDEV
|
protected String |
units
|
| Constructor Summary | |
|---|---|
Estimate()
|
|
| Method Summary | |
|---|---|
AbstractDiscretizedFunc |
getCDF_Test()
Test function to get the CDF for this estimate. |
AbstractDiscretizedFunc |
getCDF_TestUsingFractile()
Test function to get the CDF for this estimate. |
String |
getComments()
Get the comments associated with this object |
double |
getFractile(double prob)
Get fractile for a given probability (the value where the CDF equals prob). |
double |
getMax()
Get the maximum value (on X axis) |
double |
getMean()
Get the mean for this estimate |
double |
getMedian()
Get median for this estimate |
double |
getMin()
Get the minimum value (on X axis) |
double |
getMode()
Get mode for this estimate |
abstract String |
getName()
Get the name. |
AbstractDiscretizedFunc |
getPDF_Test()
Test function to find the PDF for this estimate. |
double |
getProbLessThanEqual(double x)
Get the probability that the true value is less than or equal to the provided x value (the CDF for a probability density funtion) |
double |
getStdDev()
Get Std Dev for this estimate |
String |
getUnits()
Get units for this estimate |
boolean |
isNegativeValuePresent()
Checks whether there exist any X values which are less than 0. |
void |
setComments(String comments)
Set the comments in this object |
void |
setUnits(String units)
Set the units in this estimate |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String EST_MSG_MAX_LT_MIN
protected static final String EST_MSG_NOT_NORMALIZED
protected static final String EST_MSG_PROB_POSITIVE
protected static final String EST_MSG_INVLID_RANGE
protected static final String EST_MSG_FIRST_LAST_PROB_ZERO
protected static final String MSG_INVALID_STDDEV
protected static final String MSG_ALL_PROB_ZERO
protected static final String EST_MSG_PROBS_NOT_INCREASING
protected static final String MEDIAN_UNDEFINED
protected static final String FRACTILE_UNDEFINED
protected String comments
protected double min
protected double max
protected String units
| Constructor Detail |
|---|
public Estimate()
| Method Detail |
|---|
public String getUnits()
public void setUnits(String units)
units - public double getMean()
public double getMedian()
public double getStdDev()
public double getFractile(double prob)
prob -
public double getMode()
public boolean isNegativeValuePresent()
public double getMax()
public double getMin()
public String getComments()
public void setComments(String comments)
comments - comments to be set for this objectpublic abstract String getName()
public AbstractDiscretizedFunc getPDF_Test()
public AbstractDiscretizedFunc getCDF_Test()
public double getProbLessThanEqual(double x)
x -
public AbstractDiscretizedFunc getCDF_TestUsingFractile()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||