Skip to content

Commit 6cdf4c7

Browse files
authored
Change TrunkNormal distribution type. (#334)
TrunkNormal has mistakenly been classified as a J operator. It has now correctly been changed to a ShiftScaleDistribution.
1 parent da31792 commit 6cdf4c7

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Master Branch
22
=============
33

4+
Version 4.2.6 (2021-05-10)
5+
==========================
6+
7+
FIXED:
8+
* `TruncNormal` is a `ShiftScaleDistribution`, not a `J` operator.
9+
410
Version 4.2.5 (2021-04-16)
511
==========================
612

chaospy/distributions/collection/trunc_normal.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import chaospy
55

66
from .normal import normal
7-
from ..baseclass import SimpleDistribution
8-
from ..operators import J
9-
7+
from ..baseclass import SimpleDistribution, ShiftScaleDistribution
108

119

1210
class trunc_normal(SimpleDistribution):
@@ -47,7 +45,7 @@ def _upper(self, a, b, mu, sigma):
4745
return numpy.where(b > upper, upper, b)
4846

4947

50-
class TruncNormal(J):
48+
class TruncNormal(ShiftScaleDistribution):
5149
"""
5250
Truncated normal distribution
5351

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
44

55
[tool.poetry]
66
name = "chaospy"
7-
version = "4.2.5"
7+
version = "4.2.6"
88
description = "Numerical tool for perfroming uncertainty quantification"
99
license = "MIT"
1010
authors = ["Jonathan Feinberg"]

0 commit comments

Comments
 (0)