setPolarGrid function

Intern function: Sets the polar grid

Intern function: Sets the polar grid

Sets a polar grid for a swarm in an rectangular shape

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?

Returns

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

Author(s)

Michael Thrun

See Also

Pswarm

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, tools:::Rd_expr_doi("10.1007/978-3-658-20540-9") , 2018.

  • Maintainer: Michael Thrun
  • License: GPL-3
  • Last published: 2024-06-20