using System; namespace Science.Biology.PopulationGenetics { /// /// MalePhenotype from MaleGenotype. /// public class PhenotypeMale { private int[] mapFromGenoToPheno; public PhenotypeMale(GenotypeMale mg) { mapFromGenoToPheno = new int[mg.NumberOfAllele]; } private int from,to,tomax=0; public int MapFrom { set{from=value;} } public int MapTo { set{to=value;} } public void SetMap() { mapFromGenoToPheno[from] = to; tomax=Math.Max(tomax,to); } public int[] MapFromGenoToPheno { get{return mapFromGenoToPheno;} } public int NumberOfAllele { get{return tomax+1;} } } }