Skip to content
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

How to define Fraser-Suzuki function #59

Open
xpfy opened this issue Oct 25, 2023 · 2 comments
Open

How to define Fraser-Suzuki function #59

xpfy opened this issue Oct 25, 2023 · 2 comments

Comments

@xpfy
Copy link

xpfy commented Oct 25, 2023

I have defined a funtion named Fraser-Suzuki, like this: FS(height, center, hwhm, shape) = heightexp(-ln(2)(ln(1+2shape(x-center)/hwhm)/shape)^2), but when x<center, then the ln() function is not defined in this region. How can I solve this problem? Thank you.

@henkmet
Copy link

henkmet commented Oct 26, 2023

Maybe this question is more suitable for the mailinglist but try something like this?
FS(height, center, hwhm, shape) = x > center - (hwhm)/(2shape)? heightexp(-ln(2)(ln(1+2shape(x-center)/hwhm)/shape)^2) : 0

You must also make sure shape is not 0, so it's either a three-way split or limit the domain of shape.

@xpfy
Copy link
Author

xpfy commented Oct 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants