package at.procon.dip.clustering.dto;

import java.util.UUID;

public record ClusteringEngineAssignment(
        UUID embeddingId,
        UUID documentId,
        UUID representationId,
        int clusterLabel,
        Double distanceToCentroid,
        Double membershipScore,
        boolean noise
) {
    public ClusteringEngineAssignment(
            UUID embeddingId,
            int clusterLabel,
            Double distanceToCentroid,
            Double membershipScore,
            boolean noise
    ) {
        this(embeddingId, null, null, clusterLabel, distanceToCentroid, membershipScore, noise);
    }

    public ClusteringEngineAssignment(
            UUID embeddingId,
            UUID documentId,
            UUID representationId,
            int clusterLabel,
            Double distanceToCentroid
    ) {
        this(embeddingId, documentId, representationId, clusterLabel, distanceToCentroid, null, false);
    }
}
