Learn R Programming

DatabionicSwarm (version 1.1.0)

setPolarGrid: Intern function: Sets the polar grid

Description

Sets a polar grid for a swarm in an rectangular shape

Usage

setPolarGrid(Lines,Columns,QuadOrHexa,PlotIt,global)

Arguments

Lines

Integer, hast to be able to be divided by 2

Columns

Integer, with Columns>=Lines

QuadOrHexa

bool, default(TRUE) If False Hexagonal grid, default quad grid

PlotIt

bool, default(FALSE)

global

bool, default(TRUE), intern parameter, how shall the radii be calculated?

Value

list of

GridRadii

matrix [1:Lines,1:Columns], Radii Matrix of all possible Positions of DataBots in Grid

GridAngle

matrix [1:Lines,1:Columns], Angle Matrix of all possible Positions of DataBots in Grid

AllallowedDBPosR0

matrix [1:Lines+1,1:Columns+1], Matrix of radii in polar coordinates respecting origin (0,0) of all allowed DataBots Positions in one jump

AllallowedDBPosPhi0

matrix [1:Lines+1,1:Columns+1], # V$AllallowedDBPosPhi0[Lines+1,Lines+1] Matrix of angle in polar coordinates respecting origin (0,0) of all allowed DataBots Positions in one jump

Details

Part of the Algorithm described in [Thrun, 2018, p. 95, Listing 8.1].

References

[Thrun, 2018] Thrun, M. C.: Projection Based Clustering through Self-Organization and Swarm Intelligence, doctoral dissertation 2017, Springer, Heidelberg, ISBN: 978-3-658-20539-3, https://doi.org/10.1007/978-3-658-20540-9, 2018.

See Also

Pswarm