Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13014 > unrolled thread
| Started by | Richard Palmer <rhpalmer@gmail.com> |
|---|---|
| First post | 2013-01-03 02:14 +0000 |
| Last post | 2013-01-05 07:27 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Sorry for the empty message. Here is the problem with DiscreteMarkovProcess... Richard Palmer <rhpalmer@gmail.com> - 2013-01-03 02:14 +0000
Re: Here is the problem with DiscreteMarkovProcess... bhuvaneshbhatt@gmail.com - 2013-01-05 07:27 +0000
| From | Richard Palmer <rhpalmer@gmail.com> |
|---|---|
| Date | 2013-01-03 02:14 +0000 |
| Subject | Sorry for the empty message. Here is the problem with DiscreteMarkovProcess... |
| Message-ID | <kc2phn$md5$1@smc.vnet.net> |
The code
len=3;
v=RandomInteger[1000,len];v=v/Total[v];v
Total[v]
tm = RandomReal[1, {len, len}];
tm = #/Total[#] & /@ tm;
dmp = DiscreteMarkovProcess[v, tm]
Graph[dmp]
MarkovProcessProperties[dmp]
works as advertised.
Change len=7 and the code does not work.
On my system, len=4 works, but len=5 does not.
What is going on?
On Wed, Jan 2, 2013 at 10:41 AM, Richard Palmer <rhpalmer@gmail.com> wrote:
> The code
>
>
>
> --
> Richard Palmer
>
> Home 941 412 8828
> Cell 508 982-7266
>
>
--
Richard Palmer
Home 941 412 8828
Cell 508 982-7266
[toc] | [next] | [standalone]
| From | bhuvaneshbhatt@gmail.com |
|---|---|
| Date | 2013-01-05 07:27 +0000 |
| Subject | Re: Here is the problem with DiscreteMarkovProcess... |
| Message-ID | <kc8klk$b6f$1@smc.vnet.net> |
| In reply to | #13014 |
On Wednesday, January 2, 2013 8:14:15 PM UTC-6, Richard Palmer wrote:
> The code
>
>
>
> len=3;
>
> v=RandomInteger[1000,len];v=v/Total[v];v
>
> Total[v]
>
> tm = RandomReal[1, {len, len}];
>
> tm = #/Total[#] & /@ tm;
>
> dmp = DiscreteMarkovProcess[v, tm]
>
> Graph[dmp]
>
> MarkovProcessProperties[dmp]
>
>
>
> works as advertised.
>
>
>
> Change len=7 and the code does not work.
>
> On my system, len=4 works, but len=5 does not.
>
>
>
> What is going on?
>
This was a bug, and it has been fixed and should work correctly in an upcoming release. In the meantime, here is a workaround:
Unprotect[DiscreteMarkovProcess];
ProcessParameterQ[dmp] ^= True;
Protect[DiscreteMarkovProcess];
I apologize for the inconvenience.
Bhuvanesh
Wolfram Research
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web