Skip to content

Commit b2686b1

Browse files
Added test that noncentral_chisquare(df=1.) gives positive samples
1 parent eda0549 commit b2686b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mkl_random/tests/test_regression.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,10 @@ def test_shuffle_of_array_of_objects(self):
170170
gc.collect()
171171

172172

173+
def test_non_central_chi_squared_df_one(self):
174+
a = rnd.noncentral_chisquare(df = 1.0, nonc=2.3, size=10**4)
175+
assert(a.min() > 0.0)
176+
177+
173178
if __name__ == "__main__":
174179
run_module_suite()

0 commit comments

Comments
 (0)