public KeyedVariable <TKey, TValue> CreateKeyedVariable <TKey>(TKey key, string nameFormat, params object[] args) { var newVar = new KeyedVariable <TKey, TValue>(key, String.Format(nameFormat, args), mVariablePriorInitializer()); return(newVar); }
private GaussianLikelihoodFactor CreateLikelihood(KeyedVariable<TPlayer, GaussianDistribution> playerSkill, KeyedVariable<TPlayer, GaussianDistribution> playerPerformance) { return new GaussianLikelihoodFactor(ParentFactorGraph.GameInfo.Beta * ParentFactorGraph.GameInfo.Beta, playerPerformance, playerSkill); }