-
Notifications
You must be signed in to change notification settings - Fork 10
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
implement a fref #48
implement a fref #48
Conversation
More thoughts. Two other ways to compute the mean frequency come to mind:
For both of these approaches, no new interpolation is required. |
And fref should be implemented as an input argument: Allow the user to pass either fref or tref_in, not both. |
Using the omega_p and omega_a interpolants and taking the mean sounds nice. What do we call it? |
I suggest: omega22_average_between_extrema. |
I have implemented something along this line. But currently, it takes t_ref, and f_ref but if both are given t_ref is used. I can change this. Also, instead of get tref_in from given f_ref in the init, I do it at the beginning of the measurec_ecc and then everything follows |
Also added checks to see if the fref_in is within reasonable range |
if omega_average is monotonically increasing then we have a one to one map and even if a fref vector is provided we can get the corresponding tref_in and the current implementation should work without many additional changes. Only changes should be |
now the behaviour when one gives frequencies to measure ecc is exactly the same as when time is provided. It accepts scalar/array of frequencies, returns fref_out and measured ecc and mean anomaly |
#43
Added