![]() |
Rosetta
2021.16
|
Stores the result of the surragate expression as if this expression were a variable, but defers to the root expression for questions of deriviatives and which variables are active (this is not a real variable). More...
#include <DynamicAggregateFunction.hh>

Public Types | |
| typedef numeric::expression_parser::VariableExpression | parent |
| typedef numeric::expression_parser::ExpressionCOP | ExpressionCOP |
Public Member Functions | |
| SurrogateVariableExpression (std::string const &) | |
| SurrogateVariableExpression (std::string const &, core::Real value) | |
| std::list< std::string > | active_variables () const override |
| void | root_expression (ExpressionCOP setting) |
| ExpressionCOP | differentiate (std::string const &varname) const override |
Private Attributes | |
| ExpressionCOP | root_expression_ |
Stores the result of the surragate expression as if this expression were a variable, but defers to the root expression for questions of deriviatives and which variables are active (this is not a real variable).
| typedef numeric::expression_parser::ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::ExpressionCOP |
| typedef numeric::expression_parser::VariableExpression protocols::pack_daemon::SurrogateVariableExpression::parent |
| protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression | ( | std::string const & | name | ) |
| protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression | ( | std::string const & | name, |
| core::Real | value | ||
| ) |
|
override |
If you don't want to consider any of the variables to be active in a SurrogateVariableExpression, then do not set the root_expression_ for the SurrogateVariableExpression. This allows non-expressions (e.g. the EntityFuncs) to still contribute to the FITNESS without having to correspond to a particular state.
References root_expression_.
|
override |
References root_expression_.
| void protocols::pack_daemon::SurrogateVariableExpression::root_expression | ( | ExpressionCOP | setting | ) |
References root_expression_.
|
private |
Referenced by active_variables(), differentiate(), and root_expression().
1.8.7