-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redefine rectangular distribution parameters (Trac #764) #879
Comments
Trac update at Documentation needs to be updated to match. |
Trac update at
Not addressed at code camp at SNS -- probably should be part of a polydispersity refactoring in 4.2 (a number of related tickets exist now on this topic)
|
Trac update at |
Trac update at
The gui will need to be clever to make it abundantly clear when we are using say standard deviation for a Gaussian or full (half?) width for rectangular distribution. [ticket:1018 Also http://trac.sasview.org/ticket/1018] for the Boltzmann distribution requires a new "dispersity" which is dimensionless and goes from 0 to say ~0.01 for isotropic to ordered. There is currently a column headed PD[ratio],Sig[deg] can we insert a descriptor column that changes with the function drop down to say PD[ratio], sigma [Ang or deg], Boltzmann L[ratio], full width[Ang or deg] etc. Or perhaps for now a footnote to the table to explain all this? Should we try to do this now or should we wait until the new gui in v5.0? I think that given the new distribution in http://trac.sasview.org/ticket/1018 (within the branch for http://trac.sasview.org/ticket/776) we ought to do something, if only a partial fix, now for v4.2
|
Trac update at In changeset 75e4319ad561dab526fd24007bccaa56623e0cc1:
|
A new Uniform distribution has been added in the Boltzmann branch to the distribution models, here the |
Trac update at The idea is that at some time soon rectangle distribution will be deprecated in favor of the new uniform distribution. Then the loader has to be changed to convert any rectangular input into the equivalent uniform one in order to maintain backwards compatibility. |
Trac update at Replying to [comment:4 richardh]:
Even for log-normal and Schultz distribution, sigma is not the standard deviation but some "width" of the distribution, the standard deviations are rather sqrt(exp sigma^2^ (exp sigma^2^ - 1)) and 1/sqrt(1+z), respectively, so the width sigma already now is a dimensionless number with varying meaning. |
Trac update at |
Trac update at The old rectangle polydispersity distribution could be deprecated in favor of the new uniform distribution which has a more sensible width parameter. To do this the loader has to be changed to convert any rectangular input into the equivalent uniform one in order to maintain backwards compatibility. Then we need to check that the gui and the docs do not anywhere imply that the "width parameter" is the standard deviation when it is not actually that (this is probably OK now). |
Closing this ticket since rectangular distribution is superseded by uniform distribution. Opened new ticket to remove rectangular distribution. |
The current definition of the rectangular distribution uses the 1-sigma equivalent width of the distribution rather than the more natural half-width. That means, for example, that if you want a rectangular distribution covering theta +/- 10 degrees uniformly, you instead need to 10/sqrt(3) or 5.77. Furthermore, then number of points in the distribution will be reduced as a function of Nsigs.
It will be far easier to use the distribution if PD is half the width of the desired distribution, Npts is the number of points used and Nsigs is ignored.
Migrated from http://trac.sasview.org/ticket/764
The text was updated successfully, but these errors were encountered: