DOC: fft.{fht, ifht}: add new examples#24884
Conversation
Add new examples to fht and ifht docstrings. Create example subsections on fht because it now has two examples. [docs only]
0d523e7 to
17cde1d
Compare
|
@mdhaber You gave me some really helpful tips on my first docstring example pull request. Would you mind having a look over my doc-related questions in the Additional Information section of this one? |
[docs only]
|
@lucascolley I incorporated your suggestions with the exception of the spaces around the |
[docs only] Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
[docs only]
|
@lucascolley I missed one of your suggestions the other week, but it's in now. What do you think? |
| Calculate the evaluation points for the transformed data ``a``. | ||
| Since ``ifht`` returns the transformed data in ascending order of | ||
| evaluation points, flip ``k`` in the evaluation points equation. | ||
|
|
||
| >>> r = 1/np.flip(k) |
There was a problem hiding this comment.
Hi @ntessore, could we possibly trouble you to check that this is correct?
There was a problem hiding this comment.
Apologies for the delay. The function evaluates the FHT on a logarithmic grid of values
There was a problem hiding this comment.
Apologies for the delay. The function evaluates the FHT on a logarithmic grid of values k such that k r = const. and returns function values F ( k ) in ascending order of k . So the statement is correct but it took me a second to understand that it is correct. Maybe there is an easier way to say what's going on here?
@Elle-Musoke can you think of an easier way? Either way, let's get this in for 1.18.0.
[docs only] Co-authored-by: Florian Bourgey <bourgeyflorian@gmail.com>
[docs only] Co-authored-by: Florian Bourgey <bourgeyflorian@gmail.com>
[docs only] Co-authored-by: Florian Bourgey <bourgeyflorian@gmail.com>
[docs only] Co-authored-by: Florian Bourgey <bourgeyflorian@gmail.com>
Add new examples to
fhtandifhtdocstrings. Create example subsections onfhtbecause it now has two examples.[docs only]
Reference issue
#7168
What does this implement/fix?
This change adds an example to the
ifhtdocstring and a second, simpler example to thefhtdocstring.Additional information
Tech notes: Hankel transforms are new to me, so please keep an eagle eye out for incorrect logic.
Doc notes:
Please correct me if the following aren't the way things are done in the SciPy doc.
fhtexample above the longer, more conceptual example. This way new users will encounter it first and experienced users will know enough to scroll past it.AI Generation Disclosure
No AI tools used