GeometricGradientRectangle

constructor(randomGenerator: RandomGenerator, environment: Environment<out Any, P>, nodes: Int, x: Double, y: Double, sizex: Double, sizey: Double, lambda: Double, steps: Int, horizontal: Boolean, increasing: Boolean)

Use this constructor to displace multiple groups of devices with exponentially varied density along an axis.

Parameters

environment
randomGenerator

RandomGenerator

nodes

the number of nodes to displace

x

start x position

y

start y position

sizex

width

sizey

height

lambda

the lambda parameter of the exponential. The actual lambda is computed by multiplying this value with the dimension chosen for the exponential distribution

steps

number of discrete groups. One falls back to uniform distribution, very large values approximate a continuous exponential distribution

horizontal

true if the exponential axis is horizontal

increasing

true if device density should increase with the desired axis


constructor(randomGenerator: RandomGenerator, environment: Environment<out Any, P>, nodes: Int, x: Double, y: Double, sizex: Double, sizey: Double, lambda: Double, horizontal: Boolean, increasing: Boolean)

Use this constructor to displace devices with an exponentially varied density along an axis.

Parameters

environment
randomGenerator

RandomGenerator

nodes

the number of nodes to displace

x

start x position

y

start y position

sizex

width

sizey

height

lambda

the lambda parameter of the exponential. The actual lambda is computed by multiplying this value with the dimension chosen for the exponential distribution

horizontal

true if the exponential axis is horizontal

increasing

true if device density should increase with the desired axis