-
Notifications
You must be signed in to change notification settings - Fork 105
Chromatic exponential dip #1925
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
Conversation
|
Since we need to fit for t0 also, we can't use the Heaviside theta function; it is not differentiable at 0. I am trying using the logistic function which tends to the Heaviside theta function in the appropriate limit. |
|
Par file example: |
|
@jeremy-baier Please take a look. |
|
this is awesome, @abhisrkckl . |
|
could epsilon be hardcoded to some small number to avoid user error? or perhaps a warning is appropriate if epislon is above some value. |
As epsilon approaches 0, this approaches the tempo2 version. In practice, this means something much less than the decay timescale. I have checked that 0.001 day works well, and I have included this as the default value. If the user doesn't provide EXPDIPEPS in the par file, this default will be used. |
|
yea, this looks great. |
|
I meant differentiable in T. Since it appears as (t-T), differentiable in time == differentiable in T. |
|
What does the tempo2 par file look like? Are the shared parameters the same? |
|
I think the tempo2 model was implemented in mattpitkin/tempo2@2edd0bf |
|
|
I have added the documentation and set up the parameter aliases such that tempo2 par files are now readable. |
|
This looks good to me. @scottransom : any comments or should we merge? |
|
Looks good to me, too! Nice job! |

Exponential dip model for things like profile change events.
This is different from the tempo2 implementation. In the tempo2 implementation, the exponential is multiplied by a Heaviside step function to construct the dip. This function is discontinuous at the event epoch and is hence not differentiable there. This will be a problem if the event epoch coincides with a TOA. Also, the design matrix becomes degenerate in that case.
Here, I have replaced the step function with a logistic function of a non-zero timescale. The explicit delay expression and its partial derivatives are given below. This function is normalized such that the amplitude A is the extremum value of the dip delay. Note that the extremum occurs at a time sliglthy after the event epoch.
The logistic function timescale is given by the epsilon parameter (EXPDIPEPS). It should be set to a value much less than the event decay timescale (e.g., fraction of a day), and is not a fittable parameter.
This will not work for the 2021 event of J1713+0747 since its chromatic behavior is not well-modeled by a powerlaw in observing frequency.