Hi,

It would be good to make this more general so that it can be used
elsewhere in the future.  I would suggest maybe the following.  We
have a number of equations for an exponential:

1) b*e^(a.t)
2) b*e^(-a.t)
3) -b*e^(a.t)
4) -b*e^(-a.t)
5) c + b*e^(a.t)
6) c + b*e^(-a.t)
7) c - b*e^(a.t)
8) c - b*e^(-a.t)

For the inversion recovery we use 8) and for the normal Rx we use 2).
So maybe we could have a series of these functions, all of which are
very similar.  They could be called:

1) exp_2param
2) exp_2param_neg
1) exp_2param_inv
2) exp_2param_inv_neg
5) exp_3param
6) exp_3param_neg
7) exp_3param_inv
8) exp_3param_inv_neg

These would be incredibly easy to add by simple code duplication (this
is the fastest way computationally).  What do you think?

Cheers,

Edward



On 16 June 2011 12:24, Sébastien Morin <[email protected]> wrote:
> Hi Ed,
>
> If you wish, yes, I could merge the files... This does not really change
> much.
>
> As for a more generic name, what do you propose ? "exponential_2" ?
> "exponential_build-up" ?
>
> Cheers,
>
>
> Séb  :)
>
>
> On 11-06-16 12:16 PM, Edward d'Auvergne wrote:
>>
>> Hi Seb,
>>
>> This second file is not really needed.  These are simply two
>> exponentials, one with a plateau value.  So two functions within
>> maths_fns/exponential.c could be created for these two exponential
>> forms.  Just duplicate the current and come up with two related names.
>>  It can be kept generic as well, there is no need to call it
>> inversion-recovery.
>>
>> Cheers,
>>
>> Edward
>>
>>
>> On 16 June 2011 12:07,<[email protected]>  wrote:
>>>
>>> Author: semor
>>> Date: Thu Jun 16 12:07:05 2011
>>> New Revision: 13063
>>>
>>> URL: http://svn.gna.org/viewcvs/relax?rev=13063&view=rev
>>> Log:
>>>
>>> Copied the exponential curve fitting c code as a template for the
>>> inversion-recovery code.
>>>
>>> The command used was:
>>> svn cp maths_fns/exponential.c  maths_fns/inversion-recovery.c
>>>
>>>
>>> Added:
>>>    branches/inversion-recovery/maths_fns/inversion-recovery.c
>>>      - copied unchanged from r13062,
>>> branches/inversion-recovery/maths_fns/exponential.c
>>>
>>>
>>> _______________________________________________
>>> relax (http://nmr-relax.com)
>>>
>>> This is the relax-commits mailing list
>>> [email protected]
>>>
>>> To unsubscribe from this list, get a password
>>> reminder, or change your subscription options,
>>> visit the list information page at
>>> https://mail.gna.org/listinfo/relax-commits
>>>
>> _______________________________________________
>> relax (http://nmr-relax.com)
>>
>> This is the relax-devel mailing list
>> [email protected]
>>
>> To unsubscribe from this list, get a password
>> reminder, or change your subscription options,
>> visit the list information page at
>> https://mail.gna.org/listinfo/relax-devel
>
> --
> Sébastien Morin, Ph.D.
> Postdoctoral Fellow, S. Grzesiek NMR Laboratory
> Department of Structural Biology
> Biozentrum, Universität Basel
> Klingelbergstrasse 70
> 4056 Basel
> Switzerland
>
>

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to