-
Notifications
You must be signed in to change notification settings - Fork 513
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
Update to a consistent definition of the r2 parameter for cones #3254
base: develop
Are you sure you want to change the base?
Conversation
354935d
to
11fcc46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with the wording changes but the description should specify the units (e.g., "Parameter related to the aperture in [cm²]") which seem to have been removed.
I think that's part of the motivation -- does this parameter truly have units? Based on the way it's used in the quadric equations, it doesn't. Based on the definition in the docs, maybe. At the end of the day, it's probably useful to have them there as it reinforces that this parameter is related to the value squared. |
In my perspective, since the r2 parameter is essentially the square of the slope, it does not change as other length scales/dimensions change, so it should be labelled as dimensionless but I agree with Patrick that it depends on the written definition. Either the square of the slope (dr/d(X,Y,Z))^2 or what Patrick has written both describe the behavior of the parameter but will have different units. Based on how it is written now I am fine with the cm^2 units being included. I believe my greatest concern came from the outdated documentation of similar classes like the Cone and OneSidedCone series which I think Patrick has fixed. Those definitions seemed to imply to me that the definition was (dr^2/d(X,Y,Z)) which didn't match up with the parameter behavior. |
Oh yeah, you guys are right. That definitely does not have units. I like the description from Wolfram MathWorld: "ratio of radius to height at some distance from the vertex" |
I think it should be a unit-less quantity. I suggested a description that makes that clear I think but always give the easy way to calculate it. |
Co-authored-by: Matthew Nyberg <mnyberg@wisc.edu>
Description
Updating documentation for the cone
r2
parameter for consistency after @NybergWISC pointed out some issues in one of the old doc strings that remained and noted possible confusion about units. Removing units (for now, depends on the discussion below) because the value is, as described in the doc strings, the square of the slope. If one's interpretation of the definition of ther2
parameter is that it's always relative to 1 cm from the apex, then I could see how this would have units onecm^2
also. Happy to go with a consensus on this.@MicahGale you made some improvements here most recently. Can you take a look and provide some thoughts?
Checklist
I have run clang-format (version 15) on any C++ source files (if applicable)N/AI have followed the style guidelines for Python source files (if applicable)N/AI have made corresponding changes to the documentation (if applicable)N/AI have added tests that prove my fix is effective or that my feature works (if applicable)N/A