org.opensha.commons.calc.magScalingRelations.magScalingRelImpl
Class PEER_testsMagAreaRelationship

java.lang.Object
  extended by org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
      extended by org.opensha.commons.calc.magScalingRelations.MagAreaRelationship
          extended by org.opensha.commons.calc.magScalingRelations.magScalingRelImpl.PEER_testsMagAreaRelationship
All Implemented Interfaces:
java.io.Serializable, Named

public class PEER_testsMagAreaRelationship
extends MagAreaRelationship

Title:PEER_testsMagAreaRelationship
Description: This implements the mag-area relationship defined for the PEER PSHA test cases (based on log(A)=Mag-4.0 w/ stdDev=0.25. . All calculations are completely independent of rake (i.e., you can set the rake but it will be ignored).

Version:
1.0
Author:
Edward H. Field
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
           
 
Fields inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
lnToLog, rake
 
Constructor Summary
PEER_testsMagAreaRelationship()
           
 
Method Summary
 double getAreaStdDev()
          Computes the standard deviation of log(area) (base-10) from magnitude
 double getMagStdDev()
          Gives the standard deviation for the magnitude as a function of area
 double getMedianArea(double mag)
          Computes the median rupture area from magnitude
 double getMedianMag(double area)
          Computes the median magnitude from rupture area
 java.lang.String getName()
          Returns the name of the object
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagAreaRelationship
getAreaStdDev, getMagAreaFunction, getMagStdDev, getMedianArea, getMedianMag, getMedianScale, getScaleStdDev
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
getMedianScale, getScaleStdDev, setRake
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

PEER_testsMagAreaRelationship

public PEER_testsMagAreaRelationship()
Method Detail

getMedianMag

public double getMedianMag(double area)
Computes the median magnitude from rupture area

Specified by:
getMedianMag in class MagAreaRelationship
Parameters:
area - in km-squared
Returns:
median magnitude

getMagStdDev

public double getMagStdDev()
Gives the standard deviation for the magnitude as a function of area

Specified by:
getMagStdDev in class MagAreaRelationship
Parameters:
area - in km-squared
Returns:
this returns NaN because I'm not sure the

getMedianArea

public double getMedianArea(double mag)
Computes the median rupture area from magnitude

Specified by:
getMedianArea in class MagAreaRelationship
Parameters:
mag - - moment magnitude
Returns:
median area in km-squared

getAreaStdDev

public double getAreaStdDev()
Computes the standard deviation of log(area) (base-10) from magnitude

Specified by:
getAreaStdDev in class MagAreaRelationship
Parameters:
mag - - moment magnitude
rake - in degrees
Returns:
standard deviation

getName

public java.lang.String getName()
Returns the name of the object

Specified by:
getName in interface Named
Specified by:
getName in class MagScalingRelationship