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

Double-exp model with built-in classes #25

Open
matteogabba opened this issue Oct 1, 2024 · 1 comment
Open

Double-exp model with built-in classes #25

matteogabba opened this issue Oct 1, 2024 · 1 comment

Comments

@matteogabba
Copy link

Hey Do,

I am trying to implement a double exponential decay model using the built in classes but I am having some troubles implementing the amplitude fraction x1.
Is that even possible using the built in classes?
Do you have any suggestion?

This is the model:

f(t) = a * [ x1 * exp(-k1t) + (1 - x1) * exp(-k2t) ]

Cheers,

Matteo

@dokester
Copy link
Owner

dokester commented Oct 1, 2024

I would suggest to rewrite the double decay model somewhat as

f(t) = alfa * exp( -k1 t ) + beta * exp( -k2 t )

A little mathematics will show that this is the same as your f(t) when

a = alfa + beta
x1 = alfa / ( alfa + beta )

Now there is no relation between the parameters of the 2 ExpModels

Do.

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