setGridSize {DatabionicSwarm}R 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, 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

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, 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)

[Package DatabionicSwarm version 2.0.0 Index]