Pbrown:
Filter:
Classes | Streams-Patterns-Events > Patterns > Random

Pbrown : Pattern : AbstractFunction : Object

brownian motion pattern
Source: Patterns.sc
Subclasses: Pgbrown

Description

Returns a stream that behaves like a brownian motion.

Class Methods

Pbrown.new(lo: 0.0, hi: 1.0, step: 0.125, length: inf)

Arguments:

lo

lower boundary of values.

hi

upper boundary of values.

step

maximum change per step - the distribution is xrand2.

length

number of values produced.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.calcNext(cur, step)

.embedInStream(inval)

.hi

.hi = value

.length

.length = value

.lo

.lo = value

.step

.step = value

Examples