using System; namespace Science.Biology.PopulationGenetics { /// /// FemalePhenotype from FemaleGenotype. /// public class PhenotypeFemale { private int[] mapFromGenoToPheno; public PhenotypeFemale(GenotypeFemale fg) { mapFromGenoToPheno = new int[fg.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;} } } }