32 ifstream in(filename.c_str());
33 if ( !in.is_open() ) {
47 for (
unsigned i = 1; i <= probs.size(); ++i ) {
48 out <<
"P(" << i <<
") = " << probs[i] << std::endl;
#define utility_exit_with_message(m)
Exit with file + line + message.
void print_probabilities(const utility::vector1< double > &probs, std::ostream &out)
Writes probs to the specified ostream.
Program exit functions and macros.
vector1: std::vector with 1-based indexing
void read_probabilities_or_die(const std::string &filename, utility::vector1< double > *probs)
Loads normalized, per-residue probabilities from filename, storing the result in probs. Assumes line i holds the probability of sampling residue i. There must be 1 line for each residue in the pose on which this data will be used.