SelectiveAdaptiveRange

constructor(environment: Environment<T, P>, radius: Double, desiredNeighborsCount: Int, tolerance: Int, minRange: Double = DEFAULT_MINRANGE, maxRange: Double = DEFAULT_MAXRANGE, adjustment: Double = DEFAULT_ADJUSTMENT, molType: String = DEFAULT_MOLECULETYPE)(source)

Parameters

environment

the environment whose nodes this model links

radius

the initial range of every node

desiredNeighborsCount

the preferred number of neighbors

tolerance

if the number of neighbors is smaller than desiredNeighborsCount - tolerance, the range is increased; if it is higher than desiredNeighborsCount + tolerance, it is decreased

minRange

the minimum range

maxRange

the maximum range

adjustment

the amount the range is changed by when out of tolerance

molType

the molecule whose presence allows links to be created

Type Parameters

T

concentration type

P

position type