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

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.WC1994_MagAreaRelationship
All Implemented Interfaces:
Serializable, Named

public class WC1994_MagAreaRelationship
extends MagAreaRelationship

Title:WC1994_MagAreaRelationship
Description: This implements the Wells and Coppersmith (1994, Bull. Seism. Soc. Am., pages 974-2002) magnitude versus rupture area relationships. The values are a function of rake. Setting the rake to Double.NaN causes their "All" rupture-types to be applied (and this is the default value for rake). Note that the standard deviation for area as a function of mag is given for log(area) (base-10) not area.

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

Field Summary
static String NAME
           
 
Fields inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
lnToLog, rake
 
Constructor Summary
WC1994_MagAreaRelationship()
          no-argument constructor.
 
Method Summary
 double getAreaStdDev()
          Computes the standard deviation of log(area) (base-10) from magnitude (for the previously set or default rake)
 double getMagStdDev()
          Gives the standard deviation for the magnitude as a function of area (for the previously set or default rake).
 double getMedianArea(double mag)
          Computes the median rupture area from magnitude (for the previously set or default rake).
 double getMedianMag(double area)
          Computes the median magnitude from rupture area (for the previously set or default rake).
 String getName()
          Returns the name of the object
 void setRake(double rake)
          This overides the parent method to allow a value of Double.NaN (which is used to designate the "All" rupture-types option here).
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

WC1994_MagAreaRelationship

public WC1994_MagAreaRelationship()
no-argument constructor. All this does is set the rake to Double.NaN (as the default)

Method Detail

getMedianMag

public double getMedianMag(double area)
Computes the median magnitude from rupture area (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN.

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

getMagStdDev

public double getMagStdDev()
Gives the standard deviation for the magnitude as a function of area (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN

Specified by:
getMagStdDev in class MagAreaRelationship
Parameters:
area - in km
Returns:
standard deviation

getMedianArea

public double getMedianArea(double mag)
Computes the median rupture area from magnitude (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN

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

getAreaStdDev

public double getAreaStdDev()
Computes the standard deviation of log(area) (base-10) from magnitude (for the previously set or default rake)

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

setRake

public void setRake(double rake)
This overides the parent method to allow a value of Double.NaN (which is used to designate the "All" rupture-types option here).

Overrides:
setRake in class MagScalingRelationship
Parameters:
rake -

getName

public String getName()
Returns the name of the object

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