112 SIZE_CHECK(statistics.size1() == state.size1());
113 SIZE_CHECK(statistics.size2() == state.size2());
116 for(std::size_t i = 0; i != state.size1();++i){
117 for(std::size_t j = 0; j != state.size2();++j){
134 SIZE_CHECK(statistics.size1() == state.size1());
135 SIZE_CHECK(statistics.size2() == state.size2());
137 RealVector logProbabilities(state.size1(),1.0);
138 for(std::size_t s = 0; s != state.size1();++s){
139 for(std::size_t i = 0; i != state.size2();++i){
140 logProbabilities(s) -= 0.5*
sqr(statistics(s,i)-state(s,i));
143 return logProbabilities;