org.opensha.sha.earthquake.observedEarthquake
Class ObsEqkRupListCalc

java.lang.Object
  extended by org.opensha.sha.earthquake.observedEarthquake.ObsEqkRupListCalc

public class ObsEqkRupListCalc
extends java.lang.Object

Title: ObsEqkRupListCalc

Description: This class provides users with capability to operate on Observed Eqk Rupture list. all the functions defined in this class are static, so user does not have to create the object of the class to call the method.

Version:
1.0
Author:
Nitin Gupta

Constructor Summary
ObsEqkRupListCalc()
           
 
Method Summary
static long[] getInterEventTimes(ObsEqkRupList obsEqkEvents)
          Returns the difference in origin time of Observed Eqk events in chronological order.
static IncrementalMagFreqDist getMagFreqDist(ObsEqkRupList obsEqkEvents)
           
static IncrementalMagFreqDist getMagNumDist(ObsEqkRupList obsEqkEvents)
           
static double getMaxMag(ObsEqkRupList obsEqkEvents)
          Returns the maximum magnitude for the observed Eqk Rupture events.
static double getMeanMag(ObsEqkRupList obsEqkEvents)
          Returns the Mean Mag for the given list of Events.
static double getMinMag(ObsEqkRupList obsEqkEvents)
          Returns the minimum magnitude for the observed Eqk Rupture events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObsEqkRupListCalc

public ObsEqkRupListCalc()
Method Detail

getMeanMag

public static double getMeanMag(ObsEqkRupList obsEqkEvents)
Returns the Mean Mag for the given list of Events.

Parameters:
obsEqkEvents - ObsEqkRupList list of Observed Events
Returns:
double meean Magnitude

getMinMag

public static double getMinMag(ObsEqkRupList obsEqkEvents)
Returns the minimum magnitude for the observed Eqk Rupture events.

Parameters:
obsEqkEvents - ObsEqkRupList list of observed eqk events
Returns:
double min-mag

getMaxMag

public static double getMaxMag(ObsEqkRupList obsEqkEvents)
Returns the maximum magnitude for the observed Eqk Rupture events.

Parameters:
obsEqkEvents - ObsEqkRupList list of observed eqk events
Returns:
double max-mag

getInterEventTimes

public static long[] getInterEventTimes(ObsEqkRupList obsEqkEvents)
Returns the difference in origin time of Observed Eqk events in chronological order. Difference is in the millisec.

Parameters:
obsEqkEvents - ObsEqkRupList Observed Eqk Event List
Returns:
long[] returns the long array of difference in time between all the observed events after ordering them based on their origin time. Note : Returns array of long which is the differnce in the origin time of 2 events after they are converted to milliseconds.

getMagFreqDist

public static IncrementalMagFreqDist getMagFreqDist(ObsEqkRupList obsEqkEvents)

getMagNumDist

public static IncrementalMagFreqDist getMagNumDist(ObsEqkRupList obsEqkEvents)