private Mcmc(ModelResult modelResult) { this.burninSize = modelResult.ParentModel.MonitorBurnin ? modelResult.ParentModel.NBurnin : 0; this.sampleSize = modelResult.ParentModel.NIter; this.cpc = new ChainPairCreator(burninSize, sampleSize); this.ChainDictionary = new Dictionary <string, Chain>(); this.quantileDef = new Statistics.Quantile(); this.QuantileHeader = "," + string.Join(",", quantileDef.Probabilities.Select(p => string.Format("{0:P1}", p))); //chainNo = chainNumber; }
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); } }
public static ChainNamePair GetWorkerChainNames(string workerTag) { string prefix = "mu_" + workerTag; return(ChainPairCreator.GetChainNames(prefix)); }
public static ChainNamePair GetChainNames(string prefix) { return(ChainPairCreator.GetChainNames(prefix)); }