Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_hasher
ScoreMap
 

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

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

Constructor & Destructor Documentation

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

References sanity_check().

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

References sanity_check().

Member Function Documentation

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

References scores_.

Referenced by aggregate_add().

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

References add_score(), and scores_.

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

References max_score(), and scores_.

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

References hasher_.

Referenced by score_of_bin(), and score_of_bin_normalized().

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

References cart_size_.

Referenced by read_binary(), and write_binary().

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

References scores_.

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

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

Referenced by aggregate_max().

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

References hasher_.

Referenced by core::scoring::motif::operator<<().

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

References hasher_, and scores_.

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

References scores_.

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

References read_binary().

void core::scoring::motif::XformScore::sanity_check ( ) const
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().

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

References score_of_bin().

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

References scores_.

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

References scores_.

XformScore::Score core::scoring::motif::XformScore::tot_score ( ) const
bool core::scoring::motif::XformScore::write_binary ( std::ostream &  out) const
bool core::scoring::motif::XformScore::write_binary ( std::string const &  fname) const

Friends And Related Function Documentation

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

Member Data Documentation

core::Real core::scoring::motif::XformScore::angle_resl_
core::Real core::scoring::motif::XformScore::cart_resl_
core::Real core::scoring::motif::XformScore::cart_size_
SixDCoordinateBinner core::scoring::motif::XformScore::hasher_
ScoreMap core::scoring::motif::XformScore::scores_

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