MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

EmpiricalDistribution bug


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)"



  • Prev by Date: Solve equation with summation?
  • Next by Date: Tooltip value for plots with units
  • Previous by thread: Re: Solve equation with summation?
  • Next by thread: Re: EmpiricalDistribution bug