|
Rosetta 3.5
|
A vector for storing energy data, initially all values are 0. More...
#include <EnergyMap.hh>

Public Types | |
| typedef Real const * | const_iterator |
| typedef Real * | iterator |
Public Member Functions | |
| EMapVector () | |
| default constructor, initializes the energies to 0 More... | |
| EMapVector (EMapVector const &src) | |
| EMapVector const & | operator= (EMapVector const &rhs) |
| const_iterator | begin () const |
| const-iterator to the begining of the vector of energies More... | |
| const_iterator | end () const |
| const-iterator to the end of the vector of energies More... | |
| iterator | begin () |
| non-const-iterator to the begining of the vector of energies More... | |
| iterator | end () |
| non-const-iterator to the end of the vector of energies More... | |
| Real | get (ScoreType st) |
| Returns the value for ScoreType <st> More... | |
| Real | set (ScoreType st, Real val) |
| Sets the value for ScoreType <st> to <val> More... | |
| Real & | operator[] (ScoreType st) |
| [] operator for getting a non-const reference to the energy for a ScoreType More... | |
| Real | operator[] (ScoreType st) const |
| [] operator for getting the value for a ScoreType More... | |
| void | zero (ScoreTypes const &l) |
| Zero a subset of the positions, as in calibrating a scale. More... | |
| void | zero () |
| Set every value to zero. More... | |
| void | clear () |
| Set every value to zero. More... | |
| Real | dot (EMapVector const &src) const |
| Returns the dot product of this object with EMapVector <src> More... | |
| Real | dot (EMapVector const &src, ScoreTypes const &l) const |
| dot product of two EMapVectors over a subset of the score types More... | |
| void | operator+= (EMapVector const &src) |
| += operator, for summing energies More... | |
| void | operator-= (EMapVector const &src) |
| -= operator, for subtracting energies More... | |
| void | operator*= (Real scalar) |
| *= operator, for performing multiplication of a vector by a scalar More... | |
| void | operator*= (EMapVector const &src) |
| *= operator, for performing element-by-element multiplication of two vectors More... | |
| EMapVector | operator* (Real scalar) |
| |
| EMapVector | operator* (EMapVector const &src) |
| |
| bool | operator== (EMapVector const &src) const |
| == operator for comparing two energy maps element by element More... | |
| bool | operator!= (EMapVector const &src) const |
| != operator for comparing two energy maps element by element More... | |
| void | print () const |
| print the contents of an emap vector to standard out More... | |
| void | accumulate (EMapVector const &src, ScoreTypes const &l) |
| accumulate a subset of the positions More... | |
| void | accumulate (EMapVector const &src, ScoreTypes const &l, Real const wt) |
| accumulate a subset of the positions with a common weight factor More... | |
| Real | sum () |
| Returns the sum of this vector. More... | |
| Real | norm_squared (ScoreTypes const &l) |
| accumulate the squared values of a subset of the positions More... | |
| void | show_nonzero (std::ostream &out) const |
| Prints the non-zero positions of the energy map. More... | |
| std::string | show_nonzero () const |
| convert the non-zero positions of the energy map to a string More... | |
| void | show_if_nonzero_weight (std::ostream &out, EMapVector const &weights) const |
| write the energies in this energy map to the output stream for those score types that have non-zero values in the "weights" energy map. More... | |
| void | show_weighted (std::ostream &out, EMapVector const &weights) const |
| write the weighted energies in this energy map to the output stream for those score types that have non-zero values in the "weights" energy map. More... | |
| std::string | weighted_string_of (EMapVector const &weights) const |
| convert the weighted energies in this energy map to a string for those score types that have non-zero values in the "weights" energy map. More... | |
Private Attributes | |
| Real | map_ [n_score_types] |
| Grant access to private data to the TwoBodyEMapVector. More... | |
A vector for storing energy data, initially all values are 0.
Common Methods: EMapVector.zero
Definition at line 43 of file EnergyMap.hh.
| typedef Real const* core::scoring::EMapVector::const_iterator |
Definition at line 46 of file EnergyMap.hh.
| typedef Real* core::scoring::EMapVector::iterator |
Definition at line 47 of file EnergyMap.hh.
|
inline |
default constructor, initializes the energies to 0
Definition at line 51 of file EnergyMap.hh.
References clear().
|
inline |
Definition at line 56 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
accumulate a subset of the positions
Definition at line 280 of file EnergyMap.hh.
References operator[]().
Referenced by core::scoring::eval_weighted_res_onebody_energies_for_minnode(), core::scoring::eval_weighted_res_pair_energy_for_minedge(), core::scoring::ScoreFunction::get_sub_score(), and core::scoring::ScoreFunction::setup_for_minimizing_for_node().
|
inline |
accumulate a subset of the positions with a common weight factor
Definition at line 291 of file EnergyMap.hh.
References operator[]().
|
inline |
const-iterator to the begining of the vector of energies
Definition at line 70 of file EnergyMap.hh.
References map_.
Referenced by protocols::moves::MCShowMover::apply(), core::scoring::operator<<(), core::scoring::Energies::show(), and protocols::ddg::ddGMover::store_energies().
|
inline |
non-const-iterator to the begining of the vector of energies
Definition at line 74 of file EnergyMap.hh.
References map_.
|
inline |
Set every value to zero.
example(s): emap.zero() See also: EMapVector EMapVector.get EMapVector.set ScoreFunction create_score_function
Definition at line 150 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Referenced by protocols::toolbox::pose_metric_calculators::DecomposeAndReweightEnergiesCalculator::clear_energies(), core::scoring::Energies::clear_energies(), protocols::enzdes::EnzdesBaseProtocol::disable_constraint_scoreterms(), EMapVector(), core::scoring::symmetry::SymmetricScoreFunction::eval_onebody_energies(), core::scoring::ScoreFunction::eval_onebody_energies(), protocols::hotspot_hashing::HotspotStubSet::evaluate_stub_bumps_(), protocols::hotspot_hashing::HotspotStubSet::evaluate_stub_self_energy_(), core::pose::metrics::simple_calculators::InterfaceDeltaEnergeticsCalculator::recompute(), core::scoring::Energies::scoring_begin(), core::scoring::Energies::set_size(), and zero().
|
inline |
Returns the dot product of this object with EMapVector <src>
example(s): we = scorefxn.weights() emap.dot(we) See also: EMapVector ScoreFunction ScoreFunction.weights create_score_function
Definition at line 171 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Referenced by core::scoring::Energies::accumulate_residue_total_energy(), protocols::flexpack::rotamer_set::FlexbbRotamerSet::bump_check(), core::pack::rotamer_set::RotamerSet_::bump_check(), core::pack::compare_mingraph_and_energy_graph(), core::pack::compare_simple_inteaction_graph_alt_state_and_energy_graph(), protocols::simple_filters::ResidueSetChainEnergyFilter::compute(), core::pack::interaction_graph::SimpleEdge::compute_energy(), core::pack::rotamer_set::symmetry::SymmetricRotamerSet_::compute_one_body_energies(), core::pack::rotamer_set::RotamerSet_::compute_one_body_energies(), core::pack::interaction_graph::OnTheFlyNode::compute_rotamer_pair_energy(), core::pack::interaction_graph::SymmOnTheFlyNode::compute_rotamer_pair_energy(), protocols::match::downstream::ScoringSecMatchRPE::eval_cd_2b_residues(), core::scoring::methods::ShortRangeTwoBodyEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::PairEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::LK_BallEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::ShortRangeTwoBodyEnergy::evaluate_rotamer_pair_energies(), core::scoring::methods::LK_BallEnergy::evaluate_rotamer_pair_energies(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_pair_energies(), protocols::hotspot_hashing::HotspotStubSet::evaluate_stub_self_energy_(), core::pack::rotamer_set::RotamerSets::get_bb_bbE(), core::pack::interaction_graph::SimpleEdge::get_bb_E(), core::pack::rotamer_set::RotamerSets::get_sc_bbE(), core::scoring::ScoreFunction::get_sub_score(), core::optimization::SingleResidueMultifunc::operator()(), core::scoring::DockingScoreFunction::operator()(), core::scoring::MinScoreScoreFunction::operator()(), core::scoring::symmetry::SymmetricScoreFunction::operator()(), core::pack::scmin::CartSCMinMultifunc::operator()(), core::pack::scmin::SCMinMultifunc::operator()(), core::scoring::ScoreFunction::operator()(), core::pose::metrics::simple_calculators::InterfaceDeltaEnergeticsCalculator::recompute(), core::scoring::methods::UnfoldedStateEnergy::residue_energy(), protocols::toolbox::pose_metric_calculators::SemiExplicitWaterUnsatisfiedPolarsCalculator::semiexpl_water_hbgeom_score(), core::pack::interaction_graph::SimpleNode::update_alternate_one_body_energy(), core::pack::interaction_graph::SimpleNode::update_current_one_body_energy(), protocols::toolbox::pose_metric_calculators::EnergiesData::weighted_total(), and protocols::toolbox::pose_metric_calculators::EnergiesData::weighted_total_no_master().
|
inline |
dot product of two EMapVectors over a subset of the score types
Definition at line 184 of file EnergyMap.hh.
References operator[]().
|
inline |
const-iterator to the end of the vector of energies
Definition at line 72 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Referenced by protocols::moves::MCShowMover::apply(), core::scoring::operator<<(), core::scoring::Energies::show(), and protocols::ddg::ddGMover::store_energies().
|
inline |
non-const-iterator to the end of the vector of energies
Definition at line 76 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Returns the value for ScoreType <st>
example(s): emap.get(fa_sol) See also: EMapVector EMapVector.set ScoreFunction create_score_function
Definition at line 87 of file EnergyMap.hh.
Referenced by core::scoring::DockingScoreFunction::operator()(), core::scoring::MinScoreScoreFunction::operator()(), and core::scoring::ScoreFunction::reset_energy_methods().
|
inline |
accumulate the squared values of a subset of the positions
Definition at line 321 of file EnergyMap.hh.
|
inline |
!= operator for comparing two energy maps element by element
Definition at line 265 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
Definition at line 234 of file EnergyMap.hh.
|
inline |
Definition at line 243 of file EnergyMap.hh.
|
inline |
*= operator, for performing multiplication of a vector by a scalar
Definition at line 215 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
*= operator, for performing element-by-element multiplication of two vectors
Definition at line 224 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
+= operator, for summing energies
Definition at line 197 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
-= operator, for subtracting energies
Definition at line 206 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
Definition at line 62 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
|
inline |
== operator for comparing two energy maps element by element
Definition at line 254 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
[] operator for getting a non-const reference to the energy for a ScoreType
Definition at line 100 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Referenced by accumulate(), dot(), and zero().
[] operator for getting the value for a ScoreType
Definition at line 107 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
| void core::scoring::EMapVector::print | ( | ) | const |
print the contents of an emap vector to standard out
Definition at line 31 of file EnergyMap.cc.
References map_, core::scoring::n_score_types, and core::scoring::name_from_score_type().
Sets the value for ScoreType <st> to <val>
example(s): emap.set(fa_sol,13.37) See also: EMapVector EMapVector.get ScoreFunction create_score_function
Definition at line 97 of file EnergyMap.hh.
| void core::scoring::EMapVector::show_if_nonzero_weight | ( | std::ostream & | out, |
| EMapVector const & | weights | ||
| ) | const |
write the energies in this energy map to the output stream for those score types that have non-zero values in the "weights" energy map.
Definition at line 44 of file EnergyMap.cc.
References core::scoring::n_score_types.
Referenced by protocols::moves::MonteCarlo::boltzmann(), core::pack::compare_mingraph_and_energy_graph(), core::pack::compare_simple_inteaction_graph_alt_state_and_energy_graph(), and protocols::moves::MonteCarlo::score_function().
|
inline |
Prints the non-zero positions of the energy map.
Set every value to zero
example(s): emap.show_nonzero() See also: EMapVector EMapVector.get ScoreFunction create_score_function
Definition at line 344 of file EnergyMap.hh.
References core::scoring::n_score_types.
Referenced by protocols::flexpack::FlexPacker::apply(), protocols::optimize_weights::IterativeOptEDriver::decide_if_sequence_recovery_improved(), core::pose::Pose::dump_scored_pdb(), core::pack::interaction_graph::LinearMemNode::project_deltaE_for_substitution(), and core::scoring::methods::UnfoldedStateEnergy::UnfoldedStateEnergy().
|
inline |
convert the non-zero positions of the energy map to a string
Definition at line 358 of file EnergyMap.hh.
| void core::scoring::EMapVector::show_weighted | ( | std::ostream & | out, |
| EMapVector const & | weights | ||
| ) | const |
write the weighted energies in this energy map to the output stream for those score types that have non-zero values in the "weights" energy map.
Definition at line 56 of file EnergyMap.cc.
References core::scoring::n_score_types.
Referenced by protocols::flexpack::FlexPacker::apply(), core::optimization::CartesianMultifunc::dump(), core::optimization::AtomTreeMultifunc::dump(), core::optimization::symmetry::SymAtomTreeMultifunc::dump(), core::pack::min_pack(), and weighted_string_of().
|
inline |
Returns the sum of this vector.
example(s): emap.sum() See also: EMapVector EMapVector.get EMapVector.set ScoreFunction create_score_function
Definition at line 310 of file EnergyMap.hh.
References map_, and core::scoring::n_score_types.
Referenced by protocols::simple_filters::ScoreCutoffFilter::get_score(), and protocols::simple_filters::ScoreCutoffFilter::report().
| std::string core::scoring::EMapVector::weighted_string_of | ( | EMapVector const & | weights) | const |
convert the weighted energies in this energy map to a string for those score types that have non-zero values in the "weights" energy map.
Definition at line 69 of file EnergyMap.cc.
References show_weighted().
Referenced by protocols::ddg::ddGMover::apply(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_five(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_four(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_one(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_three(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_two(), protocols::loops::loop_mover::refine::SmallMinCCDTrial::debug_zero(), core::pose::Pose::dump_scored_pdb(), protocols::loops::loop_mover::perturb::LoopMover_Perturb_CCD::model_loop(), protocols::loops::loop_mover::perturb::LoopMover_Perturb_KIC::model_loop(), and protocols::ddg::ddGMover::relax_wildtype_structure().
|
inline |
Zero a subset of the positions, as in calibrating a scale.
Definition at line 115 of file EnergyMap.hh.
References operator[]().
Referenced by core::scoring::Energies::clear(), core::pack::rotamer_set::RotamerSet_::compute_one_body_energy_maps(), core::scoring::symmetry::SymmetricScoreFunction::eval_onebody_energies(), core::scoring::symmetry::SymmetricScoreFunction::eval_twobody_neighbor_energies(), core::scoring::ScoreFunction::eval_twobody_neighbor_energies(), core::scoring::eval_weighted_res_onebody_energies_for_minnode(), core::scoring::eval_weighted_res_pair_energy_for_minedge(), core::scoring::methods::ShortRangeTwoBodyEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_background_energies(), core::scoring::methods::ShortRangeTwoBodyEnergy::evaluate_rotamer_background_energy_maps(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_background_energy_maps(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_intrares_energies(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_intrares_energy_maps(), core::scoring::methods::TwoBodyEnergy::evaluate_rotamer_pair_energies(), protocols::optimize_weights::IterativeOptEDriver::free_weights_and_refEs_from_vars(), core::pack::interaction_graph::LinearMemNode::project_deltaE_for_substitution(), core::scoring::constraints::AmbiguousConstraint::score(), and core::scoring::Energies::scoring_begin().
|
inline |
Set every value to zero.
example(s): emap.zero() See also: EMapVector EMapVector.get EMapVector.set ScoreFunction create_score_function
Definition at line 134 of file EnergyMap.hh.
References clear().
|
private |
Grant access to private data to the TwoBodyEMapVector.
EMapVector is an array. EMapVector[score_type] = value. Can be used for storing either energy or weight for each score_type.
Definition at line 395 of file EnergyMap.hh.
Referenced by begin(), clear(), dot(), EMapVector(), end(), operator!=(), operator*=(), operator+=(), operator-=(), operator=(), operator==(), operator[](), print(), and sum().
1.8.4