setGridSize: Sets the grid size for the Pswarm algorithm

View source: R/setGridSize.R

setGridSizeR Documentation

Sets the grid size for the Pswarm algorithm

Description

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

Usage

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

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.

Details

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

Value

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

Author(s)

Michael Thrun, Florian Lerch

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, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/978-3-658-20540-9")}, 2018.

See Also

automatic choice of LC for Pswarm

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)

DatabionicSwarm documentation built on Oct. 13, 2023, 5:10 p.m.