# NOT RUN {
# Create a neighborhood:
nbh <- mmb::neighborhood(df = iris, features = mmb::createFeatureForBayes(
name = "Sepal.Width", value = mean(iris$Sepal.Width)))
cent <- mmb::centralities(dfNeighborhood = nbh, shiftAmount = 0.1,
doEcdf = TRUE, ecdfMinusOne = TRUE)
# Plot the ordered samples to get an idea of the centralities in the neighborhood:
plot(x = names(cent), y=cent)
# }
Run the code above in your browser using DataLab