Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
259fec8
Merge branch 'GeoOcean:develop' into develop
viccollado May 29, 2025
331b29c
Merge branch 'GeoOcean:develop' into develop
viccollado Jun 12, 2025
ca5a5de
Merge branch 'GeoOcean:develop' into develop
viccollado Jul 8, 2025
775a70b
Merge branch 'GeoOcean:develop' into develop
viccollado Jul 22, 2025
02117b7
Merge branch 'GeoOcean:develop' into develop
viccollado Sep 17, 2025
5f09ddf
Merge branch 'GeoOcean:develop' into develop
viccollado Sep 17, 2025
d6238fd
[VCF] Changing axis limit in pca plot
viccollado Sep 23, 2025
a3ebaf0
[VCF] Update NonStatGEV plots
viccollado Oct 2, 2025
f514f53
Merge branch 'GeoOcean:develop' into develop
viccollado Oct 6, 2025
3e1346e
Merge branch 'develop' of https://github.com/viccollado/BlueMath_tk i…
viccollado Oct 6, 2025
9c03395
[VCF] Add summary and paramplot method
viccollado Oct 6, 2025
1030bf4
[VCF] Improve summary in NonStatGEV
viccollado Oct 6, 2025
7bd8237
[VCF] NonStatGEV return periods with bsimp
viccollado Oct 6, 2025
a657d44
[VCF] Improve ReturnPeriodPlot and make it faster
viccollado Oct 6, 2025
4aceeb6
[VCF] Update aggregated quantiles in NonStatGEV
viccollado Oct 6, 2025
d9f1606
[VCF] Improve stationary GEV fitted plot result
viccollado Oct 7, 2025
8a9de9b
[VCF] Improve return period plot
viccollado Oct 7, 2025
49d360a
[VCF] Update returnperiod_plot add optional parameter to compute annu…
viccollado Oct 7, 2025
2d00c08
[VCF] Add logging info and conf_int parameter in returnperiod_plot()
viccollado Oct 7, 2025
f0716e8
[VCF] Add log info to debug
viccollado Oct 8, 2025
369be6d
[VCF] Decrease errors in solving numerically the integral of aggregat…
viccollado Oct 8, 2025
0ec7185
[VCF] Update plot and using numba to make faster the aggregated retur…
viccollado Oct 9, 2025
43cc8f5
[VCF] Add numba and make faster the return period plot. Small fixes i…
viccollado Oct 9, 2025
113edf0
[VCF] Update search function in NonStatGEV
viccollado Oct 9, 2025
24a1749
[VCF] Update standard errors
viccollado Oct 9, 2025
9934376
[VCF] Stable version NonStatGEV. Vectorize parametro function and rem…
viccollado Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions bluemath_tk/distributions/_base_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,15 @@ def return_period(self, ax: plt.axes = None) -> Tuple[plt.figure, plt.axes]:
else:
fig = None

return_years = np.asarray([1.001, 1.1, 1.2, 1.3, 1.4, 1.5, 1.75, 2, 3, 4, 5, 7.5, 10, 15, 20, 25, 50, 100, 250, 500, 1000])
ecdf_fitted = 1 - 1/return_years
sorted_data = np.sort(self.data)
exceedance_prob = 1 - self.ecdf
return_period = 1 / exceedance_prob

ax.plot(
return_period,
self.dist.qf(self.ecdf, *self.params),
return_years,
self.dist.qf(ecdf_fitted, *self.params),
color="tab:red",
label="Fitted Distribution",
)
Expand All @@ -577,7 +579,7 @@ def return_period(self, ax: plt.axes = None) -> Tuple[plt.figure, plt.axes]:
ax.set_xscale("log")
ax.set_xticks([1, 2, 5, 10, 25, 50, 100, 250, 1000, 10000])
ax.set_xticklabels([1, 2, 5, 10, 25, 50, 100, 500, 1000, 10000])
ax.set_xlim(right=np.max(return_period) * 1.2)
# ax.set_xlim(right=np.max(return_period) * 1.2)
ax.set_xlabel("Return Period")
ax.set_ylabel("Data Values")
ax.set_title("Return Period Plot")
Expand Down
Loading
Loading