Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CB-quakemodel committed Jul 24, 2024
1 parent 6ae33e5 commit e074d55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openquake/smt/residuals/gmpe_residuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,17 +1139,17 @@ def cdf(self, data):

def step_data(self, x,y):
"""
Step the ecdf
Step the cdf to obtain the ecdf
"""
xx,yy = x*2, y*2
xx, yy = x*2, y*2
xx.sort()
yy.sort()
return xx, [0.]+yy[:-1]

def get_cdf_data(self, data, step_flag=None):
"""
Get the cdf (for the predicted ground-motions) or the ecdf for the
observed ground-motions
Get the cdf (for the predicted ground-motions) or the ecdf (for the
observed ground-motions)
"""
x, p = self.cdf(data)
if step_flag is True:
Expand All @@ -1163,7 +1163,7 @@ def get_stochastic_area_wrt_imt(self):
to the Stochastic Area Ranking method of Sunny et al. (2021).
Sunny, J., M. DeAngelis, and B. Edwards (2021). Ranking and Selection
of Earthquake GroundMotion Models Using the Stochastic Area Metric,
of Earthquake Ground Motion Models Using the Stochastic Area Metric,
Seismol. Res. Lett. 93, 787–797, doi: 10.1785/0220210216
"""
# Create store of values per gmm
Expand Down

0 comments on commit e074d55

Please sign in to comment.