/** * This constructor takes a HypoMagFreqDistAtLoc object, depth as a function of mag * (aveRupTopVersusMag), and a default depth (defaultHypoDepth). The depth of each point source is * set according to the mag using the aveRupTopVersusMag function; if mag is below the minimum x * value of this function, then defaultHypoDepth is applied. Note that the depth value in * HypoMagFreqDistAtLoc.getLocation() is ignored here (that location is cloned here and the depth * is overwritten). This sets the source as Poissonian */ public PointEqkSource( HypoMagFreqDistAtLoc hypoMagFreqDistAtLoc, ArbitrarilyDiscretizedFunc aveRupTopVersusMag, double defaultHypoDepth, double duration, double minMag) { this.aveRupTopVersusMag = aveRupTopVersusMag; this.defaultHypoDepth = defaultHypoDepth; this.duration = duration; this.minMag = minMag; this.isPoissonian = true; this.location = hypoMagFreqDistAtLoc.getLocation().clone(); this.setAll(hypoMagFreqDistAtLoc); this.variableDepthRakeAndDip = true; probEqkRupture = new ProbEqkRupture(); }