Question: Create the DBScan (of a DBScan algorithm) that includes: - a constructor that accepts a List of Point3D public DBScan(List) - setEps and setMinPts methods

Create the DBScan (of a DBScan algorithm) that includes:

- a constructor that accepts a List of Point3D

  • public DBScan(List)

- setEps and setMinPts methods

  • public double setEps(double eps)
  • public double setMinPts(double minPts)

- the findClusters method that executes the DBScan algorithm

  • public void findClusters()

- a getNumberOfClusters method

  • public int getNumberOfClusters()

- a getPoints that returns the list of Point3D

  • public List getPoints()

- the read static method that accept a filename and returns a list of Point3D

  • public static List read(String filename)

- the save method that saves all the points with their cluster label and associated RGB color

  • public void save(String filename)

o Note that inside the DBScan algorithm, you must use a stack class

A Stack class (to be used inside the DBScan algorithm):

- with push and pop methods

- you can use your implementation or the one in the Java API

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!