Skip to content

Commit

Permalink
Change TrunkNormal distribution type. (#334)
Browse files Browse the repository at this point in the history
TrunkNormal has mistakenly been classified as a J operator.
It has now correctly been changed to a ShiftScaleDistribution.
  • Loading branch information
jonathf committed May 11, 2021
1 parent da31792 commit 6cdf4c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
@@ -1,6 +1,12 @@
Master Branch
=============

Version 4.2.6 (2021-05-10)
==========================

FIXED:
* `TruncNormal` is a `ShiftScaleDistribution`, not a `J` operator.

Version 4.2.5 (2021-04-16)
==========================

Expand Down
6 changes: 2 additions & 4 deletions chaospy/distributions/collection/trunc_normal.py
Expand Up @@ -4,9 +4,7 @@
import chaospy

from .normal import normal
from ..baseclass import SimpleDistribution
from ..operators import J

from ..baseclass import SimpleDistribution, ShiftScaleDistribution


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


class TruncNormal(J):
class TruncNormal(ShiftScaleDistribution):
"""
Truncated normal distribution
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "chaospy"
version = "4.2.5"
version = "4.2.6"
description = "Numerical tool for perfroming uncertainty quantification"
license = "MIT"
authors = ["Jonathan Feinberg"]
Expand Down

0 comments on commit 6cdf4c7

Please sign in to comment.