Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6541 > unrolled thread
| Started by | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| First post | 2011-11-19 11:55 +0000 |
| Last post | 2011-11-20 10:44 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: EmpiricalDistribution bug Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-11-19 11:55 +0000
Re: EmpiricalDistribution bug Mark Fisher <particlefilter@gmail.com> - 2011-11-20 10:44 +0000
| From | Andrzej Kozlowski <akoz@mimuw.edu.pl> |
|---|---|
| Date | 2011-11-19 11:55 +0000 |
| Subject | Re: EmpiricalDistribution bug |
| Message-ID | <ja85ff$ile$1@smc.vnet.net> |
There is also another less awkward workaround:
In[41]:= PDF[EmpiricalDistribution[{1}]][1]
Out[41]= 1
Note that
PDF[EmpiricalDistribution[{1}]]
returns a pure function.
Andrzej Kozlowski
On 18 Nov 2011, at 12:22, Mark Fisher wrote:
> 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)"
>
[toc] | [next] | [standalone]
| From | Mark Fisher <particlefilter@gmail.com> |
|---|---|
| Date | 2011-11-20 10:44 +0000 |
| Message-ID | <jaalmj$19r$1@smc.vnet.net> |
| In reply to | #6541 |
On Nov 19, 6:55 am, Andrzej Kozlowski <a...@mimuw.edu.pl> wrote:
> There is also another less awkward workaround:
>
> In[41]:= PDF[EmpiricalDistribution[{1}]][1]
>
> Out[41]= 1
>
> Note that
>
> PDF[EmpiricalDistribution[{1}]]
>
> returns a pure function.
>
> Andrzej Kozlowski
>
> On 18 Nov 2011, at 12:22, Mark Fisher wrote:
>
>
>
>
>
>
>
> > 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 supp...@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)"
Excellent!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web