DbscanResult.cs 647 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. namespace DbscanImplementation
  3. {
  4. /// <summary>
  5. /// Result object of algorithm after clusters computed
  6. /// </summary>
  7. /// <typeparam name="TFeature">Feature data contribute into algorithm</typeparam>
  8. public class DbscanResult<TFeature>
  9. {
  10. public DbscanResult()
  11. {
  12. Noise = new List<DbscanPoint<TFeature>>();
  13. Clusters = new Dictionary<int, List<DbscanPoint<TFeature>>>();
  14. }
  15. public Dictionary<int, List<DbscanPoint<TFeature>>> Clusters { get; private set; }
  16. public List<DbscanPoint<TFeature>> Noise { get; private set; }
  17. }
  18. }