Thank you so much for your quick response,

So I found the library, etc; I won't have problems adding my function.

Regarding the cross-compilation stuff, though I'm not the best guy for it,
I'm going to give it a try. The answer to this might be quite obvious, but
I'm a newbie in the linux world: Can I do the whole compilation thing using
ubuntu? It's the only distribution I have installed for the moment. I guess
that if I can't do it I will be processing the whole thing with matlab.

regards,
Francisco

PS: the function I'm adding is just a split function:
linear/cuadratic/linear. Both linear parts have the same parameters.
Why do I want this? I work in nanolithography, I'm build and take AFM
images of lines and dots, which definitely don't fit to gaussian profiles
(and they shouldn't). I know I could just use the poly2 fit and adjust
(patiently) the fitting range, but I have so much data to fit, that I
wouldn't finish on time.

2011/11/9 David Nečas (Yeti) <[email protected]>

> On Wed, Nov 09, 2011 at 11:30:08AM +0100, Francisco Balzarotti wrote:
> > I'd like to know whether it's possible to use custom functions to fit
> > profiles.
>
> Unfortunately, no.  Namely because the fitter is an ancient unscaled M-L
> fitter code so it is difficult to export an interface for user fitting
> functions that would be actually useful.
>
> > In the case I have to edit a module to introduce the functions I need,
> may
> > you give some orientation with which module and  the editing/compiling
> > tools? (I'm using the windows version)
>
> Fitting functions are not defined in modules, they are defined in
> libgwyddion/nlfitpresets.c.  A new function is added by adding an entry
> to fitting_presets[].  The meaning of struct _GwyNLFitPresetBuiltin
> members should be relatively clear and the existing functions can serve
> as examples.  If your new function could be of general interest it can
> be added to Gwyddion so that everyone can use it.
>
> Gwyddion for MS Windows is cross-compiled on Linux as described in the
> user guide
>
>
> http://gwyddion.net/documentation/user-guide-en/installation-cross-mingw32.html
>
> This is the only method I am able to use because it does not involve
> having actual MS Windows.  So the tools consist of a text/code editor of
> your choice and the standard GNU toolchain.
>
> Regards,
>
> Yeti
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Gwyddion-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gwyddion-users
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to