Rosetta
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
core::scoring::motif::XformScore Class Reference

#include <motif_hash_stuff.hh>

Inheritance diagram for core::scoring::motif::XformScore:
Inheritance graph
[legend]

Public Types

typedef uint32_t Key
 
typedef float Score
 
typedef numeric::geometry::hashing::SixDCoordinateBinner SixDCoordinateBinner
 
typedef numeric::geometry::hashing::bin_index_hasher bin_index_hasher
 
typedef boost::unordered_map< Key, Score, bin_index_hasherScoreMap
 

Public Member Functions

 XformScore (Real cart_resl, Real ang_resl)
 
void set_score (Key const &, Score const &count)
 
void add_score (Key const &, Score const &count)
 
void max_score (Key const &, Score const &count)
 
Score score_of_bin (Real6 const &xform) const
 
Score score_of_bin (Xform const &xform) const
 
Score score_of_bin (Key const &key) const
 
Real score_of_bin_normalized (Real6 const &xform) const
 
bool write_binary (std::ostream &out) const
 
bool write_binary (std::string const &fname) const
 
Size num_bins () const
 
Size num_possible_bins () const
 
Score tot_score () const
 
void print_scores (std::ostream &out, std::string const &tag="XH ") const
 
void print_scores_norm (std::ostream &out, std::string const &tag="XH ") const
 
void clear ()
 
Real cart_size () const
 
Key bin_index (Real6 const &rt) const
 
void print_quantiles (std::ostream &out, int num) const
 
void prune_small_bins (Score thresh)
 
void sanity_check () const
 
void aggregate_add (XformScore const &other)
 
void aggregate_max (XformScore const &other)
 

Static Public Member Functions

static bool read_binary (XformScoreOP &xs, std::istream &in, bool clearme=true, Real const &wt=1.0)
 
static bool read_binary (XformScoreOP &xs, std::string const &fname, bool clearme=true, Real const &wt=1.0)
 
static bool read_binary (XformScoreOP &xs, utility::vector1< std::string > const &fnames, Real const &wt=1.0)
 

Public Attributes

SixDCoordinateBinner hasher_
 
ScoreMap scores_
 
core::Real cart_size_
 
core::Real cart_resl_
 
core::Real angle_resl_
 

Private Member Functions

 XformScore ()
 

Friends

std::ostream & operator<< (std::ostream &out, XformScore const &x)
 

Member Typedef Documentation

◆ bin_index_hasher

typedef numeric::geometry::hashing::bin_index_hasher core::scoring::motif::XformScore::bin_index_hasher

◆ Key

◆ Score

◆ ScoreMap

◆ SixDCoordinateBinner

typedef numeric:: geometry::hashing::SixDCoordinateBinner core::scoring::motif::XformScore::SixDCoordinateBinner

Constructor & Destructor Documentation

◆ XformScore() [1/2]

core::scoring::motif::XformScore::XformScore ( Real  cart_resl,
Real  ang_resl 
)

References sanity_check().

◆ XformScore() [2/2]

core::scoring::motif::XformScore::XformScore ( )
private

References sanity_check().

Member Function Documentation

◆ add_score()

void core::scoring::motif::XformScore::add_score ( Key const &  key,
Score const &  count 
)

References scores_.

Referenced by aggregate_add().

◆ aggregate_add()

void core::scoring::motif::XformScore::aggregate_add ( XformScore const &  other)

References add_score(), and scores_.

◆ aggregate_max()

void core::scoring::motif::XformScore::aggregate_max ( XformScore const &  other)

References max_score(), and scores_.

◆ bin_index()

XformScore::Key core::scoring::motif::XformScore::bin_index ( Real6 const &  rt) const

References hasher_.

Referenced by score_of_bin(), and score_of_bin_normalized().

◆ cart_size()

Real core::scoring::motif::XformScore::cart_size ( ) const
inline

References cart_size_.

Referenced by read_binary(), and write_binary().

◆ clear()

void core::scoring::motif::XformScore::clear ( )

References scores_.

◆ max_score()

void core::scoring::motif::XformScore::max_score ( Key const &  key,
Score const &  count 
)

References protocols::mean_field::max(), and scores_.

Referenced by aggregate_max().

◆ num_bins()

Size core::scoring::motif::XformScore::num_bins ( ) const

References scores_.

Referenced by write_binary().

◆ num_possible_bins()

Size core::scoring::motif::XformScore::num_possible_bins ( ) const

References hasher_.

◆ print_quantiles()

void core::scoring::motif::XformScore::print_quantiles ( std::ostream &  out,
int  num 
) const

◆ print_scores()

void core::scoring::motif::XformScore::print_scores ( std::ostream &  out,
std::string const &  tag = "XH " 
) const

◆ print_scores_norm()

void core::scoring::motif::XformScore::print_scores_norm ( std::ostream &  out,
std::string const &  tag = "XH " 
) const

◆ prune_small_bins()

void core::scoring::motif::XformScore::prune_small_bins ( XformScore::Score  thresh)

References scores_.

◆ read_binary() [1/3]

bool core::scoring::motif::XformScore::read_binary ( XformScoreOP xs,
std::istream &  in,
bool  clearme = true,
Real const &  wt = 1.0 
)
static

◆ read_binary() [2/3]

bool core::scoring::motif::XformScore::read_binary ( XformScoreOP xs,
std::string const &  fname,
bool  clearme = true,
Real const &  wt = 1.0 
)
static

◆ read_binary() [3/3]

static bool core::scoring::motif::XformScore::read_binary ( XformScoreOP xs,
utility::vector1< std::string > const &  fnames,
Real const &  wt = 1.0 
)
static

◆ sanity_check()

void core::scoring::motif::XformScore::sanity_check ( ) const

◆ score_of_bin() [1/3]

XformScore::Score core::scoring::motif::XformScore::score_of_bin ( Key const &  key) const

References scores_.

◆ score_of_bin() [2/3]

XformScore::Score core::scoring::motif::XformScore::score_of_bin ( Real6 const &  xform) const

References bin_index(), and scores_.

Referenced by score_of_bin(), and score_of_bin_normalized().

◆ score_of_bin() [3/3]

XformScore::Score core::scoring::motif::XformScore::score_of_bin ( Xform const &  xform) const

References score_of_bin().

◆ score_of_bin_normalized()

Real core::scoring::motif::XformScore::score_of_bin_normalized ( Real6 const &  xform) const

◆ set_score()

void core::scoring::motif::XformScore::set_score ( Key const &  key,
Score const &  count 
)

References scores_.

◆ tot_score()

XformScore::Score core::scoring::motif::XformScore::tot_score ( ) const

References scores_.

Referenced by write_binary().

◆ write_binary() [1/2]

bool core::scoring::motif::XformScore::write_binary ( std::ostream &  out) const

◆ write_binary() [2/2]

bool core::scoring::motif::XformScore::write_binary ( std::string const &  fname) const

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
XformScore const &  x 
)
friend

Member Data Documentation

◆ angle_resl_

core::Real core::scoring::motif::XformScore::angle_resl_

Referenced by sanity_check(), and write_binary().

◆ cart_resl_

core::Real core::scoring::motif::XformScore::cart_resl_

Referenced by sanity_check(), and write_binary().

◆ cart_size_

core::Real core::scoring::motif::XformScore::cart_size_

◆ hasher_

SixDCoordinateBinner core::scoring::motif::XformScore::hasher_

◆ scores_

ScoreMap core::scoring::motif::XformScore::scores_

The documentation for this class was generated from the following files: