Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private GaussianLikelihoodFactor CreateLikelihood(KeyedVariable<TPlayer, GaussianDistribution> playerSkill,
     KeyedVariable<TPlayer, GaussianDistribution> playerPerformance)
 {
     return new GaussianLikelihoodFactor(ParentFactorGraph.GameInfo.Beta * ParentFactorGraph.GameInfo.Beta,
         playerPerformance, playerSkill);
 }