BiomolGradientLayer

class BiomolGradientLayer<P : Position2D<P>>(directionX: Double, directionY: Double, unitVariation: Double, offset: Double) : TimeInvariantLayer<Double, P> (source)

A Layer representing a linear distribution in space of a molecule, which never changes over time.

Type Parameters

Constructors

Link copied to clipboard
constructor(directionX: Double, directionY: Double, unitVariation: Double, offset: Double)
constructor(direction: P, unitVariation: Double, offset: Double)

Builds a gradient layer which grows in concentration proportionally in space.

Properties

Link copied to clipboard

The parameters of the plane describing this spatial distribution: concentration = parameters[0] * x + parameters[1] * y + parameters[2].

Link copied to clipboard

The steepness of the gradient.

Functions

Link copied to clipboard
open override fun currentValueAt(position: P): Double
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
override fun valueAt(position: P): Observable<Double>