Commit graph

44 commits

Author SHA1 Message Date
Paul Romano
d56cda2544
Implement DecaySpectrum distribution type and utilize in R2S (#3930)
Co-authored-by: Copilot <copilot@github.com>
2026-05-08 20:53:12 -05:00
Paul Romano
3ce6cbfdda
Add fusion_neutron_spectrum to openmc.stats module (#3862) 2026-03-17 22:10:18 +01:00
GuySten
322b741fde
Support Mixture distributions in combine_distributions (#3784)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-26 07:30:08 +00:00
GuySten
83a30f6860
Support arbitrary symmetry axis for CylindricalIndependent class (#3474)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-21 20:00:36 +00:00
Paul Romano
8198e6021d
Add truncated normal distribution support (#3761) 2026-02-12 18:25:56 +02:00
GuySten
96383fcb2b
More interpolation types in Tabular. (#3413)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-11 21:05:07 +00:00
GuySten
2691ff8a0f
Fix type hinting and simplify implementation of combine_distributions (#3445)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-21 14:33:30 +00:00
Jack Fletcher
0486e433d2
Source biasing capabilities (#3460)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-12 09:51:12 -06:00
GuySten
fd964bc9b0
Enable specifying reference direction for azimuthal angle in PolarAzimuthal distribution (#3582)
Co-authored-by: shimwell <mail@jshimwell.com>
2025-11-03 09:42:59 +02:00
Paul Romano
58c7fbeac6
Re-run flaky tests when needed (#3604) 2025-10-14 07:47:26 -05:00
Paul Romano
6e0f156d33
Fix Tabular.from_xml_element for histogram case (#3287) 2025-02-04 10:38:37 -06:00
Paul Romano
04ecf54907
Improve clipping of Mixture distributions (#3154)
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
2024-10-11 07:13:10 -04:00
Paul Romano
4ef1faf766
Add delta_function convenience function (#3090) 2024-08-16 11:33:59 -05:00
Paul Romano
3dff03f824
Resolve warnings related to numpy 2.0 (#3044) 2024-06-19 15:47:08 -05:00
Patrick Shriwise
0b686e365e
Correction for histogram interpolation of Tabular distributions (#2981)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-05-25 14:11:21 -05:00
Paul Romano
9fee6534b6
Prepare for NumPy 2.0 (#2845) 2024-03-26 12:00:06 -04:00
rlbarker
b3a2456f2b
Added checks that tolerance value is between 0 and 1 (#2884) 2024-02-26 16:15:50 -06:00
Paul Romano
61c43527e6
Clip low-importance points from discrete distributions (#2715)
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2023-09-29 21:13:19 -04:00
Paul Romano
dbbad687eb Don't call normalize inside Tabular.mean 2023-02-03 08:32:05 -06:00
Paul Romano
358e7b3918 Change assert_sample_mean to use 4sigma CI 2022-10-16 12:19:12 +02:00
Paul Romano
50067898ff Replace Muir classes with single muir() Python function 2022-09-08 13:42:22 -05:00
Paul Romano
ca99195e81 Fix Mixture.sample to account for intensities of underlying distributions 2022-08-11 07:27:04 -05:00
Paul Romano
13c83a1c00 Bump up number of samples in test_combine_distributions 2022-08-04 08:54:20 -05:00
Paul Romano
cc7aa092be Address @eepeterson comments on #2135 2022-07-28 17:07:06 -05:00
Paul Romano
5a9662aa9f Add test for combine_distributions, use np.array in Discrete/Tabular setters 2022-07-22 14:56:05 -05:00
Patrick Shriwise
e9eaf2edef Using std. dev. of sampled mean for comparison 2022-06-26 01:10:53 -04:00
Patrick Shriwise
3e61076715 Changing check for Tabular to use std. dev. 2022-06-25 14:38:19 +02:00
Patrick Shriwise
967fc9f88b Adding a 'mean' method to tabular dist 2022-06-19 10:00:27 -05:00
Patrick Shriwise
f52865854b
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-19 09:39:53 -05:00
Patrick Shriwise
aba235e0b4
Update tests/unit_tests/test_stats.py
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2022-06-10 08:50:52 -05:00
Patrick Shriwise
1e83df9dc1 Removing re-defined distribution 2022-06-09 01:20:30 -05:00
Patrick Shriwise
85b6566fd7 Updating tabular means. Removing re-defined functions 2022-06-09 01:18:17 -05:00
Patrick Shriwise
94c91cc659 Adding more mean value tests for sampling distributions 2022-06-07 23:12:31 -05:00
Patrick Shriwise
2c74dcf336 Adding similar test for Muir distribution 2022-06-07 23:12:31 -05:00
Patrick Shriwise
2f22474aea Adding simple test for normal distribution 2022-06-07 23:12:31 -05:00
Paul Romano
ef3019a140 Add merge classmethod on openmc.stats.Discrete 2022-05-04 07:08:20 -05:00
Olaf Schumann
c0bcc3f1ca Renamed Rational to Power Law 2021-10-11 19:48:35 +00:00
Olaf Schumann
29a515c7ba Add regression and unit test for rational distribution 2021-10-05 20:06:41 +00:00
Olaf Schumann
6612b4ba04 updated unit_test for Mixture distribution 2021-09-29 08:59:43 +00:00
amandalund
2f09b7ca85 Fixed some univariate/multivariate from_xml_element issues and updated unit tests 2019-05-22 19:26:15 -06:00
Andrew Davis
e1cdd5a5c2 Added unit tests for the Normal & Muir distributions in test_stats.py 2018-12-13 16:38:20 +00:00
Paul Romano
d75b715026 Add source tests and fix one failing test 2018-02-05 07:35:48 -06:00
Paul Romano
058402954f Add tests for multivariate distributions in openmc.stats 2018-02-05 07:35:18 -06:00
Paul Romano
4180d632a4 Add tests for univariate probability distributions 2018-02-05 07:35:18 -06:00