This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduction of JohnsonSU pdf. * addition of johnsonSU plots for doc * remove johnsonSU from pdf.pxd * fix missing comma in __init__.py * finish implementation of normalized johnson pdf and add tests. * fix error in __init__ * replace .info to .version in probfit/__init__.py (bad previous merging) * dd in the docstring a reference for the JohnsonSU PDF
- Loading branch information
1 parent
ef9ccec
commit a11401f
Showing
6 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,7 @@ and send us pull request. | |
cauchy | ||
rtv_breitwigner | ||
doublegaussian | ||
johnsonSU | ||
argus | ||
linear | ||
poly2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from probfit.pdf import johnsonSU | ||
from probfit.plotting import draw_pdf | ||
from collections import OrderedDict | ||
import matplotlib.pyplot as plt | ||
|
||
bound = (-10, 10) | ||
|
||
arg = OrderedDict(mean=2, sigma=1, nu=-4, tau=0.5) | ||
draw_pdf(johnsonSU, arg=arg, bound=bound, label=str(arg), density=False, | ||
bins=200) | ||
|
||
arg = OrderedDict(mean=-3, sigma=2, nu=+4, tau=0.1) | ||
draw_pdf(johnsonSU, arg=arg, bound=bound, label=str(arg), density=False, | ||
bins=200) | ||
|
||
arg = OrderedDict(mean=0, sigma=3, nu=+2, tau=0.9) | ||
draw_pdf(johnsonSU, arg=arg, bound=bound, label=str(arg), density=False, | ||
bins=200) | ||
|
||
plt.grid(True) | ||
plt.legend().get_frame().set_alpha(0.5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters