Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6499

EmpiricalDistribution bug

From Mark Fisher <particlefilter@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject EmpiricalDistribution bug
Date 2011-11-18 11:23 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ja5f74$6b8$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

EmpiricalDistribution bug Mark Fisher <particlefilter@gmail.com> - 2011-11-18 11:23 +0000
  Re: EmpiricalDistribution bug Mark Fisher <particlefilter@gmail.com> - 2011-11-19 11:49 +0000
  Re: EmpiricalDistribution bug Ralph Dratman <ralph.dratman@gmail.com> - 2011-11-20 10:36 +0000

csiph-web