EmpiricalDistribution bug
- To: mathgroup at smc.vnet.net
- Subject: [mg122947] EmpiricalDistribution bug
- From: Mark Fisher <particlefilter at gmail.com>
- Date: Fri, 18 Nov 2011 06:22:10 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Here is a (bad) bug involving EmpriicalDistribution: PDF[EmpiricalDistribution[{1}], 1] produces error messages and returns Boole[{1}[[GeometricFunctions`BinarySearch[{{1}, "Sorted"}, 1]]] == 1] {1}[[GeometricFunctions`BinarySearch[{{1}, "Sorted"}, 1]]] Here is an (awkward) workaround: PDF[EmpiricalDistribution[{1}], x] /. x -> 1 which returns 1. I have submitted this to support at wolfram.com, but I'm hoping someone lurking from wolfram will look into this and figure out a code patch that can be applied right away. Thanks. --Mark "8.0 for Microsoft Windows (64-bit) (October 7, 2011)"
- Follow-Ups:
- Re: EmpiricalDistribution bug
- From: Andy Ross <andyr@wolfram.com>
- Re: EmpiricalDistribution bug
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: EmpiricalDistribution bug
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: EmpiricalDistribution bug