cluster_dbscan: DBSCAN

View source: R/clu_dbscan.R

cluster_dbscanR Documentation

DBSCAN

Description

Creates a clusterer object that uses the DBSCAN method It wraps the dbscan library.

Usage

cluster_dbscan(minPts = 3, eps = NULL)

Arguments

minPts

minimum number of points

eps

distance value

Value

A dbscan object.

Examples

# setup clustering
model <- cluster_dbscan(minPts = 3)

#load dataset
data(iris)

# build model
model <- fit(model, iris[,1:4])
clu <- cluster(model, iris[,1:4])
table(clu)

# evaluate model using external metric
eval <- evaluate(model, clu, iris$Species)
eval

daltoolbox documentation built on May 29, 2024, 1:57 a.m.