How can I add my own function to the FIM+ menu?
Up to table of contentsQ62. How can I add my own function to the FIM+ menu?
Read the comments at the top of the source code file afni_fimfunc.c.
Basically, you have to write a C function that takes as input a time series array from a single voxel and returns as output 1 or more numbers to be stored for that voxel. Two sample functions are in that file (for the Spearman rank and quadrant correlations - "robust" versions of the cross-product correlation computed by the normal FIM options).
Then you have to "register" the function with AFNI. The sample functions are registered from within afni.c itself. You can embed your functions in a plugin, and register them from within the plugins initialization routine. Or you can give them to me to re-distribute with the rest of the AFNI package.
[Answer added 02 Feb 2000]
This FAQ applies to: Any version.