|
||||||||||
| 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.SingleMagFreqDist
public class SingleMagFreqDist
Title: SingleMagFreqDist
Description: This has only a single magnitude with a non-zero rate. Note that this magnitude must equal one of the descrete x-axis points.
| Field Summary | |
|---|---|
static String |
NAME
todo variables |
| 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 | |
|---|---|
SingleMagFreqDist(double min,
double max,
int num)
Constructor |
|
SingleMagFreqDist(double min,
int num,
double delta)
Constructor |
|
SingleMagFreqDist(double min,
int num,
double delta,
double mag,
double moRate)
Constructor |
|
| Method Summary | |
|---|---|
String |
getDefaultInfo()
Returns the default Info String for the Distribution |
String |
getDefaultName()
Returns the default Name for the Distribution |
double |
getMag()
Gets the magnitude which has non-zero rate |
double |
getRate()
returns the rate for which magnitude has non-zero rate |
void |
setMagAndMomentRate(double mag,
double moRate)
Sets the magnitude For this magnitude it calculates the non-zero rate from a static function getMoment of the class MomentMagCalc and moRate |
void |
setMagAndRate(double mag,
double rate)
sets the magnitude for non-zero rate |
void |
setRateAndMomentRate(double rate,
double moRate,
boolean relaxTotMoRate)
sets the non-zero rate For this rate the magnitude is calculated using the static function getMag of the class MomentMagCalc and moRate. |
| 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 SingleMagFreqDist(double min,
int num,
double delta)
throws InvalidRangeException
min - num - delta -
InvalidRangeException
public SingleMagFreqDist(double min,
double max,
int num)
throws XY_DataSetException,
InvalidRangeException
min - max - num -
XY_DataSetException
InvalidRangeException
public SingleMagFreqDist(double min,
int num,
double delta,
double mag,
double moRate)
throws InvalidRangeException,
Point2DException
min - delta - num - mag - moRate -
InvalidRangeException
Point2DException| Method Detail |
|---|
public double getRate()
public double getMag()
public void setMagAndRate(double mag,
double rate)
throws Point2DException
mag - rate -
Point2DException
public void setMagAndMomentRate(double mag,
double moRate)
throws Point2DException
mag - moRate -
Point2DException
public void setRateAndMomentRate(double rate,
double moRate,
boolean relaxTotMoRate)
throws Point2DException
rate - moRate -
Point2DExceptionpublic String getDefaultName()
IncrementalMagFreqDist
getDefaultName in class IncrementalMagFreqDistpublic String getDefaultInfo()
IncrementalMagFreqDist
getDefaultInfo in class IncrementalMagFreqDist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||