namespace GerbilManagerWebAPI.Genetics { /// /// Result of an inbreeding-coefficient (Inzuchtkoeffizient) calculation for an /// individual or a hypothetical pairing. /// /// Wright's inbreeding coefficient F, in the range 0..1. /// The coefficient expressed as a percentage (F * 100). /// /// The deepest generation of known ancestry above the individual (parents = 1, /// grandparents = 2, …). 0 when no parents are recorded. /// /// /// The ancestors common to both parents, each with its additive contribution to F, /// ordered by contribution descending. Empty when there is no inbreeding. /// public record InbreedingResult( double Coefficient, double Percent, int GenerationsAvailable, IReadOnlyList CommonAncestors); /// A single common ancestor and how much it contributes to F. public record CommonAncestorContribution(Guid Id, string Name, double Contribution); }