[SciPy-User] smoothing in scipy/matplotlib

josef.pktd at gmail.com josef.pktd at gmail.com
Sat Jan 16 18:33:50 EST 2010


On Sat, Jan 16, 2010 at 5:28 PM, per freem <perfreem at gmail.com> wrote:
> hi all,
>
> i am using gaussian_kde to fit a gaussian kernel estimator to a bunch
> of data. the lines i get are often quite jaggy and very sensitive to
> fluctuations in the data. is there a way to "smooth" the estimate
> more? typically in gaussian kdes there is a smoothing parameter, but i
> do not see one in the documentation.
>
> is there a way to do this?

Not yet, I never committed the change, the cleanest way currently is
by subclassing kde_gaussian, the dirtier version is by monkey
patching. I can look for my example scripts for both later tonight,
there is also some information on the mailing list, e.g. a subclassing
example by Anne (maybe one and a half years ago)

I'm a bit surprised about undersmoothing, because I did the changes
for the case of oversmoothing by kde_gaussian.

Josef




>
> thanks.
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list