ClusterLabelPredict {dirichletprocess} | R Documentation |
Predict the cluster labels of some new data.
Description
Given a fitted Dirichlet process object and some new data use this function to predict what clusters the new data belong to and associated cluster parameters.
Usage
ClusterLabelPredict(dpobj, newData)
Arguments
dpobj |
Fitted Dirichlet Process |
newData |
New data to have cluster labels predicted. |
Value
A list of the predicted cluster labels of some new unseen data.
Examples
y <- rnorm(10)
dp <- DirichletProcessGaussian(y)
dp <- Fit(dp, 5)
newY <- rnorm(10, 1)
pred <- ClusterLabelPredict(dp, newY)
[Package dirichletprocess version 0.4.2 Index]