Rosetta
Namespaces | Functions
prob_util.hh File Reference
#include <iosfwd>
#include <utility/vector1.hh>

Namespaces

 numeric
 Unit headers.
 

Functions

template<class InputIterator >
double numeric::sum (InputIterator first, InputIterator last)
 Returns the sum of all elements on the range [first, last) More...
 
template<class InputIterator >
void numeric::normalize (InputIterator first, InputIterator last)
 Normalizes elements on the range [first, last) More...
 
template<class RandomAccessIterator >
void numeric::cumulative (RandomAccessIterator first, RandomAccessIterator last)
 Converts pdf to cdf. More...
 
template<class ForwardIterator >
void numeric::product (ForwardIterator probs1_first, ForwardIterator probs1_last, ForwardIterator probs2_first, ForwardIterator probs2_last)
 Multiplies two probability vectors with one another. Probability vectors are assumed to have equal lengths. More...
 
void numeric::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. More...
 
void numeric::print_probabilities (const utility::vector1< double > &probs, std::ostream &out)
 Writes probs to the specified ostream. More...
 

Detailed Description

Author
Christopher Miles (cmile.nosp@m.s@uw.nosp@m..edu)