|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.estimate.Estimate
org.opensha.commons.data.estimate.FractileListEstimate
public class FractileListEstimate
Title: FractileListEstimate.java
Description: This estimate is a list of arbitrary points from a cumulative distribution (CDF). The rules for this etimate are: 1. 1>=y>=0 2. y(i+1)>=y(i) 3. To ensure that median is available: If number of values==1, ensure that y = 0.5 If number of values > 1, first_y<=0.5 and last_y>=0.5
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
static String |
NAME
|
| Fields inherited from class org.opensha.commons.data.estimate.Estimate |
|---|
comments, EST_MSG_FIRST_LAST_PROB_ZERO, EST_MSG_INVLID_RANGE, EST_MSG_MAX_LT_MIN, EST_MSG_NOT_NORMALIZED, EST_MSG_PROB_POSITIVE, EST_MSG_PROBS_NOT_INCREASING, FRACTILE_UNDEFINED, max, MEDIAN_UNDEFINED, min, MSG_ALL_PROB_ZERO, MSG_INVALID_STDDEV, units |
| Constructor Summary | |
|---|---|
FractileListEstimate(AbstractDiscretizedFunc func)
Construnctor - Accepts the ArbitrarilyDiscretizedFunc of values and probabilites. |
|
| Method Summary | |
|---|---|
double |
getFractile(double prob)
If a point with the associated probability does not exist, the fractal is found by linear interpolation between the two points that bracket the prob. |
double |
getMedian()
Returns the X value corresponding to Y = 0.5 If there is no Y where Y =0.5, then linear interpolation is used to find the interpolated X value (this object requires that a median exist). |
String |
getName()
Get the name. |
AbstractDiscretizedFunc |
getValues()
|
void |
setValues(AbstractDiscretizedFunc func)
This checks: 1. |
String |
toString()
|
| Methods inherited from class org.opensha.commons.data.estimate.Estimate |
|---|
getCDF_Test, getCDF_TestUsingFractile, getComments, getMax, getMean, getMin, getMode, getPDF_Test, getProbLessThanEqual, getStdDev, getUnits, isNegativeValuePresent, setComments, setUnits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public FractileListEstimate(AbstractDiscretizedFunc func)
func - ArbitrarilyDiscretizedFunc function of values and probabilities| Method Detail |
|---|
public String toString()
toString in class Estimatepublic void setValues(AbstractDiscretizedFunc func)
func - public double getMedian()
getMedian in class Estimatepublic double getFractile(double prob)
getFractile in class Estimateprob -
public AbstractDiscretizedFunc getValues()
public String getName()
Estimate
getName in class Estimate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||