Problem
Generalize the smear morph to not just Gaussians.
Solution
Let's add an option --smear-function or something that can be either a word (e.g. "gaussian", "lorentzian", etc.) or a function in the case of the Python API.
To implement the arbitrary function:
Problem
Generalize the smear morph to not just Gaussians.
Solution
Let's add an option
--smear-functionor something that can be either a word (e.g. "gaussian", "lorentzian", etc.) or a function in the case of the Python API.To implement the arbitrary function:
morphpy.py). This should be fairly easy since the CLI input will be a string, while the Python function will be an actual function. Check for edge chases (e.g. if a user somehow can input a non-string in the CLI as input.)xmintoxmaxrange the user provides, meaning divergences at infinity are not a concern, but it is still something to think about. We ABSOLUTELY need to ensure the function is well-defined in all points betweenxminandxmaxthough.