parKml3d | R Documentation |
parKml3d
is a constructor of object ParKml
that provide adequate default value for the use of function kml3d
.
parKml3d(saveFreq = 100, maxIt = 200, imputationMethod = "copyMean",
distanceName = "euclidean3d", power = 2, distance = function() {
}, centerMethod = meanNA, startingCond = "nearlyAll", nbCriterion =100,scale=TRUE)
saveFreq |
|
maxIt |
|
imputationMethod |
|
distanceName |
|
power |
|
distance |
|
centerMethod |
|
startingCond |
|
nbCriterion |
|
scale |
|
parKml3d
is a constructor of object ParKml
that provide adequate default value for the use of function kml3d
.
An object ParKml
.
### Move to tempdir
wd <- getwd()
setwd(tempdir()); getwd()
### Generation of some data
cld1 <- generateArtificialLongData3d(c(15,15,15))
### Setting two different set of option :
(option1 <- parKml3d())
(option2 <- parKml3d(centerMethod=function(x)median(x,na.rm=TRUE)))
### Running kml. Formaly, the second exemple is 'k-median'
kml3d(cld1,4,1,toPlot="both",parAlgo=option1)
kml3d(cld1,4,1,toPlot="both",parAlgo=option2)
### Go back to current dir
setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.