Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.4K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

NestList question

Posted 10 years ago
POSTED BY: Tarpanelli Paolo
2 Replies

A one-dimensional version where the random additions are generated inside NestList

dR[a_, b_, r_, w_] := r + a*b*w;
rSim[a_, b_, w_, r_] = r + dR[a, b, r, w];
NestList[rSim[a, b, RandomReal[], #] &, r0, 3]

With FoldList you can provide a list of externally generated random additions:

randomWList = RandomReal[{0, 1}, 3];
FoldList[rSim[a, b, #2, #1] &, r0, randomWList]
POSTED BY: Gianluca Gorni

What kind of noise matrix?

You can make a matrix of random values fairly easily using RandomVariate:

RandomVariate[NormalDistribution[], {m, n}]

Remember in Mathematica that Matrix multiplication is done with a "." and not "*". Star will do a piecewise multiplication.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard