Пример #1
0
 /**
  * Le paramètre modelResult ne doit pas être null, il permet d'obtenir les valeurs de MonitorBurnin, NBurnin, NIter.
  */
 internal Mcmc(ModelResult modelResult, params string[] chainNamePrefixes) : this(modelResult)
 {
     foreach (string prefix in chainNamePrefixes)
     {
         ChainPairCreator.ChainPair pair = this.cpc.GetPair(prefix);
         ChainDictionary.Add(pair.Burnin.Label, pair.Burnin);
         ChainDictionary.Add(pair.Sample.Label, pair.Sample);
     }
 }
Пример #2
0
        internal void AddWorkerMuChain(IList <Worker> worker)
        {
            ChainPairCreator cpc = new ChainPairCreator(burninSize, sampleSize);

            foreach (Worker w in worker)
            {
                ChainPairCreator.ChainPair cp = cpc.GetPair(GetWorkerChainPrefix(w.Tag));
                ChainDictionary.Add(cp.Burnin.Label, cp.Burnin);
                ChainDictionary.Add(cp.Sample.Label, cp.Sample);
            }
        }
Пример #3
0
 internal void Add(string chainNamePrefix)
 {
     ChainPairCreator.ChainPair pair = cpc.GetPair(chainNamePrefix);
     ChainDictionary.Add(pair.Burnin.Label, pair.Burnin);
     ChainDictionary.Add(pair.Sample.Label, pair.Sample);
 }