|
||||||||||
| 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.YC_1985_CharMagFreqDist
public class YC_1985_CharMagFreqDist
Title: YC_1985_CharMagFreqDist.java
Description: This is the "characteristic" magnitude-frequency distribution defined by Youngs and Coppersmith (1985, Bull. Seism. Soc. Am., 939-964). The distribution is Gutenberg-Richter between magLower and magPrime, and constant between (magUpper-deltaMagChar) and magUpper with a rate equal to that of the Gutenberg-Richter part at (magPrime-deltaMagPrime). See their figure 10 for a graphical explanation of these parameters. Note that magLower, magUpper, magPrime, magUpper-deltaMagChar, and magPrime-deltaMagPrime must all be exactly equal one of the descrete x-axis points.
| 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 |
|---|
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 | |
|---|---|
YC_1985_CharMagFreqDist(double min,
double max,
int num)
Constructor: this is the same as the parent class constructor |
|
YC_1985_CharMagFreqDist(double min,
int num,
double delta)
Constructor : this is the same as the parent class constructor |
|
YC_1985_CharMagFreqDist(double min,
int num,
double delta,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
Constructor: this constructor assumes magLower is minX and magUpper to be maxX |
|
YC_1985_CharMagFreqDist(double min,
int num,
double delta,
double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
Constructor: this is the full constructor /** Constructor: this constructor assumes magLower is minX and magUpper to be maxX |
|
| 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 |
getDeltaMagChar()
|
double |
getDeltaMagPrime()
|
double |
getMagLower()
|
double |
getMagPrime()
|
double |
getMagUpper()
|
double |
getTotCumRate()
|
void |
set(double x,
double y)
Overriden to prevent value setting. |
void |
set(int index,
double y)
Overriden to prevent value setting. |
void |
set(Point2D point)
Overriden to prevent value setting. |
void |
setAllButTotCharRate(double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
Update distribution (using total moment rate rather than the total rate of char events) |
void |
setAllButTotMoRate(double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totCharRate)
Update distribution (using total rate of char events rather than 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, 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, getDatasetsToPlot, getPlotNumColorList, 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 org.opensha.commons.gui.plot.PlotElement |
|---|
getDatasetsToPlot, getPlotNumColorList |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
public static String NAME
| Constructor Detail |
|---|
public YC_1985_CharMagFreqDist(double min,
int num,
double delta)
throws InvalidRangeException
min - - minimum mag of distributionnum - - number of points in distributiondelta - - discretization interval
InvalidRangeException
public YC_1985_CharMagFreqDist(double min,
double max,
int num)
throws XY_DataSetException,
InvalidRangeException
min - - minimum mag of distributionmax - - maximum mag of distributionnum - - number of points in distribution
XY_DataSetException
InvalidRangeException
public YC_1985_CharMagFreqDist(double min,
int num,
double delta,
double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
throws InvalidRangeException,
Point2DException
min - - minimum mag of distributionnum - - number of points in distributiondelta - - discretization intervalmagLower - - the lowest non-zero-rate magnitudemagUpper - - the highest non-zero-rate magnitudedeltaMagChar - - the width of the characteristic part (below magUpper)magPrime - - the upper mag of the GR partdeltaMagPrime - - the distance below magPrime where the rate equals that over the char-rate partbValue - - the b valuetotMoRate - - the total moment rate
InvalidRangeException
Point2DException
public YC_1985_CharMagFreqDist(double min,
int num,
double delta,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
throws InvalidRangeException,
Point2DException
min - - minimum mag of distributionnum - - number of points in distributiondelta - - discretization intervaldeltaMagChar - - the width of the characteristic part (below magUpper)magPrime - - the upper mag of the GR partdeltaMagPrime - - the distance below magPrime where the rate equals that over the char-rate partbValue - - the b valuetotMoRate - - the total moment rate
InvalidRangeException
Point2DException| Method Detail |
|---|
public void setAllButTotCharRate(double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totMoRate)
throws Point2DException,
InvalidRangeException
magLower - - the lowest non-zero-rate magnitudemagUpper - - the highest non-zero-rate magnitudedeltaMagChar - - the width of the characteristic part (below magUpper)magPrime - - the upper mag of the GR partdeltaMagPrime - - the distance below magPrime where the rate equals that over the char-rate partbValue - - the b valuetotMoRate - - the total moment rate
Point2DException
InvalidRangeException
public void setAllButTotMoRate(double magLower,
double magUpper,
double deltaMagChar,
double magPrime,
double deltaMagPrime,
double bValue,
double totCharRate)
throws Point2DException,
InvalidRangeException
magLower - - the lowest non-zero-rate magnitudemagUpper - - the highest non-zero-rate magnitudedeltaMagChar - - the width of the characteristic part (below magUpper)magPrime - - the upper mag of the GR partdeltaMagPrime - - the distance below magPrime where the rate equals that over the char-rate partbValue - - the b valuetotCharRate - - the total rate of characteristic events (cum rate at magUpper-deltaMagChar).
Point2DException
InvalidRangeExceptionpublic void set(Point2D point)
set in interface XY_DataSetset in class EvenlyDiscretizedFuncUnsupportedOperationException
public void set(double x,
double y)
set in interface XY_DataSetset in class EvenlyDiscretizedFuncUnsupportedOperationException
public void set(int index,
double y)
set in interface XY_DataSetset in class EvenlyDiscretizedFuncUnsupportedOperationExceptionpublic double getTotCumRate()
public double get_bValue()
public double getMagLower()
public double getMagUpper()
public double getMagPrime()
public double getDeltaMagPrime()
public double getDeltaMagChar()
public String getDefaultName()
getDefaultName in class IncrementalMagFreqDistpublic String getDefaultInfo()
getDefaultInfo in class IncrementalMagFreqDist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||