Esempio n. 1
0
 public static void FlipFullDictionary(Dictionary <string, List <List <double> > > toFlip)
 {
     foreach (string st in toFlip.Keys.ToList())
     {
         toFlip [st] = SpatialBayes.FlipListofLists(toFlip [st]);
     }
 }
Esempio n. 2
0
        public static double GetMegaBg(Dictionary <string, List <List <double> > > data)
        {
            double cumu  = 0;
            double count = 0;

            foreach (KeyValuePair <string, List <List <double> > > kvp in data)
            {
                SpatialBayes.GetBGCumu(kvp.Value, ref cumu, ref count);
            }

            return(cumu / count);
        }