- #1
rkaminski
- 11
- 0
Dear All,
I would like to do an exponential function least-squares fitting, but having two or more exponents. For example the function looks like this:
[itex]y (x) = A \exp (-x/a) + B \exp (-x/b) [/itex]
where [itex]A[/itex], [itex]a[/itex], [itex]B[/itex] and [itex]b[/itex] are the least-squares fitted parameters. My question is how to obtain the initial parameters? I could assume that that my initial function follows the one-exponential function and then get initial estimates of [itex]a[/itex] and [itex]A[/itex], but then how to get initial values of both [itex]a[/itex] and [itex]b[/itex], and other parameters? I cannot assume for example [itex]b = 0[/itex] obviously. Thanks in advance.
Best wishes,
Radek
I would like to do an exponential function least-squares fitting, but having two or more exponents. For example the function looks like this:
[itex]y (x) = A \exp (-x/a) + B \exp (-x/b) [/itex]
where [itex]A[/itex], [itex]a[/itex], [itex]B[/itex] and [itex]b[/itex] are the least-squares fitted parameters. My question is how to obtain the initial parameters? I could assume that that my initial function follows the one-exponential function and then get initial estimates of [itex]a[/itex] and [itex]A[/itex], but then how to get initial values of both [itex]a[/itex] and [itex]b[/itex], and other parameters? I cannot assume for example [itex]b = 0[/itex] obviously. Thanks in advance.
Best wishes,
Radek