MINI MINI MANI MO
%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
%
\name{ore.predict-kmeans}
\alias{ore.predict-kmeans}
\alias{ore.predict,kmeans-method}
\title{
\code{\link[stats]{kmeans}}モデルを使用したOracle R Enterpriseの予測
}
\description{
\code{\link[stats]{kmeans}}モデルを使用して予測を生成する
Oracle R Enterpriseのメソッド。
}
\usage{
\S4method{ore.predict}{kmeans}(object, newdata, type = c("classes", "distances"),
na.action = na.pass, ...)
}
\arguments{
\item{object}{
\code{\link[stats]{kmeans}}モデル・オブジェクト。
}
\item{newdata}{
\code{\link[OREbase:ore.frame-class]{ore.frame}}オブジェクト。
}
\item{type}{
実行する予測のタイプを指定する文字列。
\code{"classes"} (クラスタID)または\code{"distances"}
(クラスタ中央値からのユークリッド距離)。
}
\item{na.action}{
\code{NA}値が処理される方式で、\code{na.omit}または\code{na.pass}のいずれか。
}
\item{\dots}{
オプションの引数。
}
}
\value{
引数\code{type}が\code{"classes"}の場合、クラスタ分類
の\code{\link[OREbase:ore.integer-class]{ore.integer}}オブジェクトを
返します。
引数\code{type}が\code{"distances"}の場合、クラスタ
ごとに1つの列を含む\code{\link[OREbase:ore.frame-class]{ore.frame}}オブジェクト
を返します。
}
\references{
\href{http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/documentation/index.html}{Oracle R Enterprise}
}
\author{
Oracle \email{oracle-r-enterprise@oracle.com}
}
\seealso{
\code{\link{ore.predict}},
\code{\link{ore.predict-matrix}},
\code{\link[stats]{kmeans}}.
}
\examples{
irisClusters <- kmeans(as.matrix(iris[1:4]), centers = 3)
IRIS <- ore.push(iris)
IRIS$CLUSTER <- ore.predict(irisClusters, IRIS)
IRIS <- cbind(IRIS, ore.predict(irisClusters, IRIS, type = "distances"))
head(IRIS)
table(IRIS$CLUSTER, IRIS$Species)
}
\keyword{multivariate}
\keyword{cluster}
OHA YOOOO