STORM_LOG_THROW(element!=storm::utility::infinity<ValueType>(),storm::exceptions::InvalidOperationException,"Cannot compute the sum of values containing infinity.");
sum+=element;
}
}else{
for(auto&element:boost::get<map_type>(values)){
STORM_LOG_THROW(element.second!=storm::utility::infinity<ValueType>(),storm::exceptions::InvalidOperationException,"Cannot compute the sum of values containing infinity.");
STORM_LOG_THROW(element!=storm::utility::infinity<ValueType>(),storm::exceptions::InvalidOperationException,"Cannot compute the average of values containing infinity.");
sum+=element;
}
returnsum/boost::get<vector_type>(values).size();
}else{
for(auto&element:boost::get<map_type>(values)){
STORM_LOG_THROW(element.second!=storm::utility::infinity<ValueType>(),storm::exceptions::InvalidOperationException,"Cannot compute the average of values containing infinity.");