コード例 #1
0
        public double ParentalSetProbability(int homoDominantPopulation, int heteroPopulation, int homoRecessivePopulation)
        {
            var pop = new MendellianModel(homoDominantPopulation, heteroPopulation, homoRecessivePopulation);
            var parentalProbabilitySum = pop.Parents.Values.Sum();

            return(Math.Round(parentalProbabilitySum, Constants.RoundingPrecision));
        }
コード例 #2
0
        public int Constructor_Tests(int dominantPopulation, int heteroPopulation, int recessivePopulation)
        {
            var model = new MendellianModel(dominantPopulation, heteroPopulation, recessivePopulation);

            return(0);
        }