| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- using System;
- namespace DbscanImplementation.Eventing
- {
- public class ComputeFinished
- {
- public Guid ComputeId { get; }
- public ComputeFinished(Guid computeId)
- {
- ComputeId = computeId;
- }
- }
- public class ComputeStarted
- {
- public Guid ComputeId { get; }
- public ComputeStarted(Guid computeId)
- {
- ComputeId = computeId;
- }
- }
- public class PointProcessFinished<TF>
- {
- public DbscanPoint<TF> Point { get; }
- public PointProcessFinished(DbscanPoint<TF> point)
- {
- Point = point;
- }
- }
- public class ClusteringFinished<TF>
- {
- public DbscanPoint<TF> Point { get; }
- public DbscanPoint<TF>[] NeighborPoints { get; }
- public int ClusterId { get; }
- public double Epsilon { get; }
- public int MinimumPoints { get; }
- public ClusteringFinished(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints,
- int clusterId, double epsilon, int minimumPoints)
- {
- Point = point;
- NeighborPoints = neighborPoints;
- ClusterId = clusterId;
- Epsilon = epsilon;
- MinimumPoints = minimumPoints;
- }
- }
- public class ClusteringStarted<TF>
- {
- public DbscanPoint<TF> Point { get; }
- public DbscanPoint<TF>[] NeighborPoints { get; }
- public int ClusterId { get; }
- public double Epsilon { get; }
- public int MinimumPoints { get; }
- public ClusteringStarted(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints,
- int clusterId, double epsilon, int minimumPoints)
- {
- Point = point;
- NeighborPoints = neighborPoints;
- ClusterId = clusterId;
- Epsilon = epsilon;
- MinimumPoints = minimumPoints;
- }
- }
- public class PointTypeAssigned<TF>
- {
- public DbscanPoint<TF> Point { get; }
- public PointType AssignedType { get; }
- public PointTypeAssigned(DbscanPoint<TF> point, PointType assignedType)
- {
- Point = point;
- AssignedType = assignedType;
- }
- }
- public class RegionQueryFinished<TF>
- {
- public DbscanPoint<TF> Point { get; }
- public DbscanPoint<TF>[] NeighborPoints { get; }
- public RegionQueryFinished(DbscanPoint<TF> point, DbscanPoint<TF>[] neighborPoints)
- {
- Point = point;
- NeighborPoints = neighborPoints;
- }
- }
- public class RegionQueryStarted<TF>
- {
- public DbscanPoint<TF> Point { get; private set; }
- public double Epsilon { get; }
- public int MinimumPoints { get; }
- public RegionQueryStarted(DbscanPoint<TF> point, double epsilon, int minimumPoints)
- {
- Point = point;
- Epsilon = epsilon;
- MinimumPoints = minimumPoints;
- }
- }
- public class PointAlreadyProcessed<TF>
- {
- public DbscanPoint<TF> Point { get; private set; }
- public PointAlreadyProcessed(DbscanPoint<TF> point)
- {
- Point = point;
- }
- }
- public class PointProcessStarted<TF>
- {
- public DbscanPoint<TF> Point { get; private set; }
- public PointProcessStarted(DbscanPoint<TF> point)
- {
- Point = point;
- }
- }
- }
|