StepLayer

class StepLayer<T, P : Position2D<out P>>(mx: Double, my: Double, maxValue: T, minValue: T) : TimeInvariantLayer<T, P>

A Layer with a discontinuous spatial distribution that never changes over time: the value is maxValue where both coordinates exceed the thresholds mx and my, and minValue elsewhere.

Parameters

mx

the x value above which the concentration is at its maximum value

my

the y value above which the concentration is at its maximum value

maxValue

the high value of concentration

minValue

the low value of concentration

Type Parameters

T

the type describing the concentration in this Layer

Constructors

Link copied to clipboard
constructor(mx: Double, my: Double, maxValue: T, minValue: T)
constructor(maxValue: T, minValue: T)

Builds a StepLayer whose concentration is at its maxValue in the first quadrant, for positive values of both coordinates, and minValue elsewhere.

Functions

Link copied to clipboard
open override fun currentValueAt(position: P): T

The current value at position.

Link copied to clipboard
Link copied to clipboard
override fun valueAt(position: P): Observable<T>

The value at position, as an observable emitting every change of that value.