|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.function.AbstractXY_DataSet
org.opensha.commons.data.function.AbstractDiscretizedFunc
org.opensha.commons.data.function.EvenlyDiscretizedFunc
org.opensha.sha.magdist.IncrementalMagFreqDist
org.opensha.sha.magdist.GutenbergRichterMagFreqDist
public class GutenbergRichterMagFreqDist
Title: GutenbergRichterMagFreqDist.java
Description: This is a truncated incremental Gutenberg-Richter distribution. Note that magLower and magUpper must exactly equal one of the descrete x-axis values.
| Field Summary | |
|---|---|
static String |
NAME
|
| Fields inherited from class org.opensha.sha.magdist.IncrementalMagFreqDist |
|---|
defaultInfo, defaultName |
| Fields inherited from class org.opensha.commons.data.function.EvenlyDiscretizedFunc |
|---|
C, delta, first, maxX, minX, num, points |
| Fields inherited from class org.opensha.commons.data.function.AbstractDiscretizedFunc |
|---|
tolerance, XML_METADATA_NAME, XML_METADATA_POINT_NAME, XML_METADATA_POINTS_NAME |
| Fields inherited from class org.opensha.commons.data.function.AbstractXY_DataSet |
|---|
info, name, xAxisName, yAxisName |
| Constructor Summary | |
|---|---|
GutenbergRichterMagFreqDist(double bValue,
double totCumRate,
double min,
double max,
int num)
constructor: this is sameas parent class constructor |
|
GutenbergRichterMagFreqDist(double min,
double max,
int num)
constructor: this is sameas parent class constructor |
|
GutenbergRichterMagFreqDist(double min,
int num,
double delta)
constructor : this is same as parent class constructor |
|
GutenbergRichterMagFreqDist(double min,
int num,
double delta,
double totMoRate,
double bValue)
constructor: this constructor assumes magLower is minX and magUpper to be maxX |
|
GutenbergRichterMagFreqDist(double min,
int num,
double delta,
double magLower,
double magUpper,
double totMoRate,
double bValue)
constructor: |
|
| Method Summary | |
|---|---|
double |
get_bValue()
|
String |
getDefaultInfo()
this function returns String for drawing Legen in JFreechart |
String |
getDefaultName()
returns the name of this class |
double |
getMagLower()
|
double |
getMagUpper()
|
double |
getTotCumRate()
|
static void |
main(String[] args)
this method (defined in parent) is deactivated here (name is finalized) public void setName(String name) throws UnsupportedOperationException{ throw new UnsupportedOperationException("setName not allowed for MagFreqDist."); } this method (defined in parent) is deactivated here (name is finalized) public void setInfo(String info)throws UnsupportedOperationException{ throw new UnsupportedOperationException("setInfo not allowed for MagFreqDist."); } |
void |
setAllButMagUpper(double magLower,
double totMoRate,
double totCumRate,
double bValue,
boolean relaxTotMoRate)
Set All but magUpper |
void |
setAllButTotCumRate(double magLower,
double magUpper,
double totMoRate,
double bValue)
Set all values except Cumulative Rate |
void |
setAllButTotMoRate(double magLower,
double magUpper,
double totCumRate,
double bValue)
Set all values except total moment rate |
| Methods inherited from class org.opensha.commons.data.function.EvenlyDiscretizedFunc |
|---|
add, add, areAllXValuesInteger, clear, equalXAndYValues, equalXValues, get, getClosestXIndex, getClosestY, getDelta, getFirstInterpolatedX_inLogXLogYDomain, getFirstInterpolatedX, getIndex, getInterpolatedY_inLogXLogYDomain, getInterpolatedY_inLogYDomain, getInterpolatedY, getMaxX, getMaxY, getMetadataString, getMinX, getMinY, getNum, getPointsIterator, getX, getXIndex, getY, getY, hasPoint, hasPoint, set, set, set, set, set, toString, withinTolerance |
| Methods inherited from class org.opensha.commons.data.function.AbstractDiscretizedFunc |
|---|
calcSumOfY_Vals, equals, fromXMLMetadata, getTolerance, loadFuncFromSimpleFile, loadFuncFromSimpleFile, scale, setTolerance, toXMLMetadata, toXMLMetadata, writeSimpleFuncFile, writeSimpleFuncFile |
| Methods inherited from class org.opensha.commons.data.function.AbstractXY_DataSet |
|---|
getClosestX, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, iterator, setInfo, setName, setXAxisName, setYAxisName, xValues, yValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opensha.commons.data.function.XY_DataSet |
|---|
getClosestX, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, setInfo, setName, setXAxisName, setYAxisName, xValues, yValues |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
public static String NAME
| Constructor Detail |
|---|
public GutenbergRichterMagFreqDist(double min,
int num,
double delta)
throws InvalidRangeException
min - num - delta - using the parameters we call the parent class constructors to initialise the parent class variables
InvalidRangeException
public GutenbergRichterMagFreqDist(double min,
double max,
int num)
throws XY_DataSetException,
InvalidRangeException
min - max - num - using the min, max and num we calculate the delta
XY_DataSetException
InvalidRangeException
public GutenbergRichterMagFreqDist(double bValue,
double totCumRate,
double min,
double max,
int num)
throws XY_DataSetException,
InvalidRangeException
min - max - num - using the min, max and num we calculate the delta
XY_DataSetException
InvalidRangeException
public GutenbergRichterMagFreqDist(double min,
int num,
double delta,
double totMoRate,
double bValue)
throws Point2DException
min - num - delta - totMoRate - : total Moment RatebValue - : b value for this distribution
Point2DException
public GutenbergRichterMagFreqDist(double min,
int num,
double delta,
double magLower,
double magUpper,
double totMoRate,
double bValue)
throws InvalidRangeException,
Point2DException
min - num - delta - magLower - : lowest magnitude that has non zero ratemagUpper - : highest magnitude that has non zero ratetotMoRate - : total Moment RatebValue - : b value for this distribution
InvalidRangeException
Point2DException| Method Detail |
|---|
public void setAllButTotCumRate(double magLower,
double magUpper,
double totMoRate,
double bValue)
throws Point2DException
magLower - : lowest magnitude that has non zero ratemagUpper - : highest magnitude that has non zero ratetotMoRate - : Total Moment RatebValue - : b Value
Point2DException
public void setAllButTotMoRate(double magLower,
double magUpper,
double totCumRate,
double bValue)
throws Point2DException
magLower - : lowest magnitude that has non zero ratemagUpper - : highest magnitude that has non zero ratetotCumRate - : Total Cumulative RatebValue - : b value
Point2DException
public void setAllButMagUpper(double magLower,
double totMoRate,
double totCumRate,
double bValue,
boolean relaxTotMoRate)
throws XY_DataSetException,
Point2DException
magLower - : lowest magnitude that has non zero ratetotMoRate - : total moment ratetotCumRate - : total cumulative ratebValue - : b valuerelaxTotMoRate - : It is "true" or "false". It accounts for tha fact
that due to magnitude discretization, the specified totCumRate and totMoRate
cannot both be satisfied simultaneously. if it is false, it means that match
totMoRate exactly else it matches totCumRate exactly
XY_DataSetException
Point2DException
public double getTotCumRate()
throws Point2DException
Point2DExceptionpublic double get_bValue()
public double getMagLower()
public double getMagUpper()
public String getDefaultName()
getDefaultName in class IncrementalMagFreqDist
public String getDefaultInfo()
throws Point2DException
getDefaultInfo in class IncrementalMagFreqDistPoint2DExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||