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

exceptions in kde #37

Closed
alang9 opened this issue Aug 29, 2012 · 1 comment
Closed

exceptions in kde #37

alang9 opened this issue Aug 29, 2012 · 1 comment

Comments

@alang9
Copy link

alang9 commented Aug 29, 2012

Maybe these should be two separate issues, but here goes:

> let f x y = kde x $ Data.Vector.Unboxed.replicate y 0.0
> f 2 1
(fromList [-0.1,0.1],fromList [6.255700138464551,3.744299861535448])
> f 1 1
*** Exception: Statistics.Math.log2: invalid input
> f 1 2
*** Exception: ./Data/Vector/Generic/Mutable.hs:576 (read): index out of bounds (-9223372036854775808,1)
@Shimuuar
Copy link
Collaborator

dct is at fault.

>>> dct $ U.replicate 1 0
*** Exception: Statistics.Math.log2: invalid input

Even worse:
>>> dct $ U.replicate 3 0
[0.0,0.0]

Reordering of vector's elements in the dctWorker works improperly for samples with odd sizes

Shimuuar added a commit to Shimuuar/statistics that referenced this issue Sep 14, 2012
Such grids don't make sense anyway.

Fix haskell#37
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

2 participants