Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics.Sample.KernelDensity.Simple is deprecated? #112

Open
jsermeno opened this issue Nov 19, 2016 · 2 comments
Open

Statistics.Sample.KernelDensity.Simple is deprecated? #112

jsermeno opened this issue Nov 19, 2016 · 2 comments

Comments

@jsermeno
Copy link
Contributor

Hi,

I wanted to learn more about this module's deprecation. I want to specify the lower and upper bounds for an estimate, where the lower and upper bounds extend beyond the range of the sample data. I was unable to get the results I want with Statistics.Sample.KernelDensity.kde_, but found that Statistics.Sample.KernelDensity.Simple.estimatePDF works perfectly. My question is, should kde_ be able to do everything that estimatePDF can? Is there something I need to do to the data I pass into kde_? Here's an example:

With the following test data:

let demoData = V.fromList $ concat $ zipWith replicate [5, 4, 3, 7] [0..3]

The following estimate:

-- xValues has 'n' values ranging from 'a' to 'b'.
Stats.estimatePDF Stats.gaussianKernel bw demoData (Points xs)

Returns an estimate like this:

__amby

While the following code:

Stats.kde_ n a b demoData

Returns an estimate like this:

__amby

Thanks

@Shimuuar Shimuuar modified the milestone: release 0.14 Apr 27, 2017
@Shimuuar
Copy link
Collaborator

Shimuuar commented May 1, 2017

@bos could you comment on this?

@luke-clifton
Copy link

This looks related to #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants