Pgeom:
Filter:
Classes | Streams-Patterns-Events > Patterns > List

Pgeom : Pattern : AbstractFunction : Object

geometric series pattern
Source: Patterns.sc

Description

Returns a stream that behaves like a geometric series.

Class Methods

Pgeom.new(start: 0, grow: 1, length: inf)

Arguments:

start

start value.

grow

multiplication factor.

length

number of values produced.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

.grow

.grow = value

.length

.length = value

.start

.start = value

Examples