powered by
Using a fitted Dirichlet process object include new data. The new data will be assigned to the best fitting cluster for each point.
ChangeObservations(dpobj, newData)
The Dirichlet process object.
New data to be included
Changed Dirichlet process object
# NOT RUN { y <- rnorm(10) dp <- DirichletProcessGaussian(y) dp <- ChangeObservations(dp, rnorm(10)) # }
Run the code above in your browser using DataLab