Movatterモバイル変換


[0]ホーム

URL:


CheckscodecovdocsCRAN_Status_BadgeDownloadsMIT

clugenr

Summary

clugenr is anR implementation of theclugen algorithm for generating multidimensional clusters witharbitrary distributions. Each cluster is supported by a line segment,the position, orientation and length of which guide where the respectivepoints are placed.

How to install

A stable version of the package is available onCRAN and can be installed withthe following instruction:

install.packages("clugenr")

Alternatively, install the development version from GitHub with thefollowing command (requires thedevtoolspackage):

devtools::install_github("clugen/clugenr")

Documentation

All methods and functions are fully documented and can be queriedusing the built-in help system. After installation, to access the manpages, invoke theclugenr help page as follows:

help("clugenr")

The complete online documentation is availablehere.

Quick start

library(clugenr)x<-clugen(2,5,1000,c(1,-0.5),0.5,c(4,6),6,0.2,0.5)plot(x$points,col = x$clusters,xlab ="x",ylab ="y",asp =1)

library(clugenr)library(rgl)# For 3D plotsx<-clugen(3,5,2000,c(1,0.5,-0.7),0.5,c(15,10,20),15,3,10)plot3d(x$points,col = x$clusters,xlab ="x",ylab ="y",zlab ="z",aspect = T)

See also

Reference

If you use this software, please cite the following reference:

License

MIT License


[8]ページ先頭

©2009-2025 Movatter.jp