GeometricGradientRectangle

Distributes nodes geometrically within a rectangular shape.

Type Parameters

P

position type

Constructors

Link copied to clipboard
constructor(randomGenerator: RandomGenerator, environment: Environment<*, 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.

constructor(randomGenerator: RandomGenerator, environment: Environment<*, 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.

Functions

Link copied to clipboard

Returns the optional NetworkModel associated to the deployment, or null if there is none.

Link copied to clipboard
open operator override fun iterator(): Iterator<P>
Link copied to clipboard
open override fun stream(): Stream<P>

Returns a Stream over the positions of this Deployment.