MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/R/library/OREpredict/doc/man/zh_CN/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/R/library/OREpredict/doc/man/zh_CN/ore.predict-kmeans.Rd

%
% 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"}, 则返回
  为每个聚类带有一列的
  \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