[SciPy-dev] Where to add special functions ?
Thu Jul 19 14:08:18 CDT 2007
David Cournapeau wrote:
> I would like to add a special function (implemented in python), but
> not sure where I should put it for a patch: it looks like scipy.special
> is implemented in C/Fortran except for orthgonal function.
> The function I would like to add is the generalized gamma:
> The function is useful to multi variate analysis (appears for example
> when one needs to compute the KL divergence of Wishart distributions,
> which appear quite often in Bayesian statistics).
Put your Python file in Lib/special and import from it in __init__.py. Use your
judgment as to its name, but you might want to make it sufficiently general such
that it will be the obvious place to put more pure Python special functions.
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Scipy-dev