Add auto
parent
00f8d90223
commit
92744d13c6
|
@ -50,8 +50,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
// Print the UGM distribution
|
// Print the UGM distribution
|
||||||
cout << "\nUGM distribution:" << endl;
|
cout << "\nUGM distribution:" << endl;
|
||||||
vector<DiscreteFactor::Values> allPosbValues = cartesianProduct(
|
auto allPosbValues = cartesianProduct(Cathy & Heather & Mark & Allison);
|
||||||
Cathy & Heather & Mark & Allison);
|
|
||||||
for (size_t i = 0; i < allPosbValues.size(); ++i) {
|
for (size_t i = 0; i < allPosbValues.size(); ++i) {
|
||||||
DiscreteFactor::Values values = allPosbValues[i];
|
DiscreteFactor::Values values = allPosbValues[i];
|
||||||
double prodPot = graph(values);
|
double prodPot = graph(values);
|
||||||
|
|
Loading…
Reference in New Issue