|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.earthquake.ProbEqkSource
org.opensha.sha.earthquake.rupForecastImpl.PointEqkSource
public class PointEqkSource
Title: PointEqkSource
Description: This makes a point source based on the inputs of the various constructors:
If an IncrementalMagFreqDist (or HypoMagFreqDistAtLoc) and duration have been given, then the source is Poissonian and it is assumed that the duration units are the same as those for the rates in the IncrementalMagFreqDist. Also, magnitudes below the minimum are ignored, as are those with zero rates. If magnitude/probability have been given, the source has only one rupture and is not Poissonian.
| Field Summary |
|---|
| Fields inherited from class org.opensha.sha.earthquake.ProbEqkSource |
|---|
isPoissonian, name |
| Constructor Summary | |
|---|---|
PointEqkSource(HypoMagFreqDistAtLoc hypoMagFreqDistAtLoc,
ArbitrarilyDiscretizedFunc aveRupTopVersusMag,
double defaultHypoDepth,
double duration,
double minMag)
This constructor takes a HypoMagFreqDistAtLoc object, depth as a function of mag (aveRupTopVersusMag), and a default depth (defaultHypoDepth). |
|
PointEqkSource(Location loc,
double magnitude,
double probability,
double aveRake,
double aveDip)
Constructor specifying the location, a magnitude and probability, the average rake, and the dip. |
|
PointEqkSource(Location loc,
IncrementalMagFreqDist magFreqDist,
double duration,
double aveRake,
double aveDip)
Constructor specifying the location, the IncrementalMagFreqDist, the duration, the average rake, and the dip. |
|
PointEqkSource(Location loc,
IncrementalMagFreqDist magFreqDist,
double duration,
double aveRake,
double aveDip,
double minMag)
Constructor specifying the Location, the IncrementalMagFreqDist, the duration, the average rake, the dip, and the minimum magnitude to consider from the magFreqDist in making the source (those below are ingored). |
|
| Method Summary | |
|---|---|
LocationList |
getAllSourceLocs()
It returns a list of all the locations which make up the surface for this source. |
double |
getDuration()
This gets the duration used in computing Poisson probabilities (it may be NaN if the source is not Poissonian). |
Location |
getLocation()
This gets the location |
double |
getMinDistance(Site site)
This returns the shortest horizontal dist to the point source. |
double |
getMinMag()
This gets the minimum magnitude to be considered from the mag-freq dist (those below are ignored in making the source). |
String |
getName()
get the name of this class |
int |
getNumRuptures()
Get the number of ruptures for this source |
ProbEqkRupture |
getRupture(int nthRupture)
This makes and returns the nth probEqkRupture for this source. |
RuptureSurface |
getSourceSurface()
This gives the entire surface of the source |
void |
setDuration(double duration)
This sets the duration used in computing Poisson probabilities. |
void |
setLocation(Location loc)
This sets the location |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointEqkSource(Location loc,
IncrementalMagFreqDist magFreqDist,
double duration,
double aveRake,
double aveDip,
double minMag)
public PointEqkSource(Location loc,
IncrementalMagFreqDist magFreqDist,
double duration,
double aveRake,
double aveDip)
public PointEqkSource(HypoMagFreqDistAtLoc hypoMagFreqDistAtLoc,
ArbitrarilyDiscretizedFunc aveRupTopVersusMag,
double defaultHypoDepth,
double duration,
double minMag)
public PointEqkSource(Location loc,
double magnitude,
double probability,
double aveRake,
double aveDip)
| Method Detail |
|---|
public LocationList getAllSourceLocs()
getAllSourceLocs in interface EqkSourcepublic RuptureSurface getSourceSurface()
EqkSource
getSourceSurface in interface EqkSourcepublic int getNumRuptures()
ProbEqkSource
getNumRuptures in interface EqkSourcegetNumRuptures in class ProbEqkSourcepublic ProbEqkRupture getRupture(int nthRupture)
getRupture in interface EqkSourcegetRupture in class ProbEqkSourcepublic void setDuration(double duration)
duration - public double getDuration()
duration - public void setLocation(Location loc)
loc - public Location getLocation()
public double getMinMag()
public double getMinDistance(Site site)
getMinDistance in class ProbEqkSourcesite -
public String getName()
getName in interface NamedgetName in class ProbEqkSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||