setGridSize function

Sets the grid size for the Pswarm algorithm

Sets the grid size for the Pswarm algorithm

Automatically sets the size of the grid, formula see [Thrun, 2018, p. 93-94].

setGridSize(InputDistances,minp=0.01,maxp=0.99,alpha=4, Verbose = 0)

Arguments

  • InputDistances: [1:n,1:n] symmetric matrix of input distances
  • minp: default value: 0.01,see quantile, first value in the vector of probs estimates robust minimum of distances
  • maxp: default value: 0.99, see quantile, last value of the vector of probs estimates robust maximum of distances
  • alpha: Do not change! Intern parameter, Only if Java Version of Pswarm instead of C++ version is used.
  • Verbose: optional, integer stating degree of textual feedback. 0 = no output, 1 = basic notifications, 2 = progress bar, 3 = details.

Details

grid is set such that minimum and maximum distances can be shown on the grid

Returns

LC=c(Lines, Columns) size of the grid for Pswarm

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.

Author(s)

Michael Thrun, Florian Lerch

Examples

data("Lsun3D") Data=Lsun3D$Data Cls=Lsun3D$Cls InputDistances=as.matrix(dist(Data)) #If not called separately setGridSize() is called in Pswarm LC=setGridSize(InputDistances)

See Also

automatic choice of LC for Pswarm

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