ClusterSet.cs 580 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. namespace Dbscan
  3. {
  4. /// <summary>
  5. /// The result of running the DBSCAN algorithm on a set of data.
  6. /// </summary>
  7. /// <typeparam name="T">The type of elements in the cluster.</typeparam>
  8. public class ClusterSet<T>
  9. {
  10. /// <summary>
  11. /// A list of the clusters that have been identified.
  12. /// </summary>
  13. public IReadOnlyList<Cluster<T>> Clusters { get; set; }
  14. /// <summary>
  15. /// A list of the items that were not identified as being part of a cluster.
  16. /// </summary>
  17. public IReadOnlyList<T> UnclusteredObjects { get; set; }
  18. }
  19. }