![]() |
Rosetta Core
2014.16.56682
|
Unnormalized, unbounded sum of Gaussians constraint. More...
#include <USOGFunc.hh>
Public Member Functions | |
| USOGFunc () | |
| Used in conjunction with read_data() to initialize a new instance. More... | |
| USOGFunc (core::Real mean, core::Real std_dev, core::Real weight=1) | |
| Constructs a new instance with a single gaussian. More... | |
| USOGFunc (const utility::vector1< core::Real > &means, const utility::vector1< core::Real > &std_devs, const utility::vector1< core::Real > &weights) | |
| Constructs a new instance from the specified lists of means, standard deviations, and weights. Assumes that all lists have equal length and weights sum to 1. More... | |
| ~USOGFunc () | |
| No-op virtual destructor. More... | |
| FuncOP | clone () const |
| core::Real | func (const core::Real x) const |
| Returns a value representing this function evaluated at a given point. More... | |
| core::Real | dfunc (const core::Real x) const |
| Returns a value representing the derivative of this function evaluated at a given point. More... | |
| void | read_data (std::istream &in) |
| Initializes this function from the given input stream. More... | |
| void | show_definition (std::ostream &out) const |
| Writes the definition of this function to the specific output stream. More... | |
| core::Size | numGaussians () const |
| Returns the number of Gaussian components. More... | |
Public Member Functions inherited from core::scoring::func::Func | |
| virtual | ~Func () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
| virtual Real | estimate_dfunc (Real const r) const |
| Estimates the derivative of this function at a given radius by calculating the slope of the secant line from func(r) and func(r+1e-05). More... | |
| virtual Real | estimate_dfunc (Real const r, Real const h) const |
| Estimates the derivative of this function at a given radius by calculating the slope of the secant line from func(r) and func(r+h). More... | |
| virtual void | show (std::ostream &out) const |
| Prints out space-delimited columns for r, func, dfunc and dfunc_est. The values for func, dfunc and dfunc_est are plotted as a function of r, which is varied from 2-20 in steps of 0.5. The value for dfunc_est is the estimated by the method estimate_dfunc( r ). More... | |
| virtual Size | show_violations (std::ostream &out, Real r, Size verbose_level, Real threshold=1) const |
| show some sort of stringified representation of the violations for this constraint. More... | |
Static Public Attributes | |
| static Real | background_prob = exp(-10.) |
Private Member Functions | |
| void | resetInstance () |
| Resets all information associated with this instance. More... | |
Private Attributes | |
| utility::vector1< core::Real > | means_ |
| utility::vector1< core::Real > | std_devs_ |
| utility::vector1< core::Real > | weights_ |
Unnormalized, unbounded sum of Gaussians constraint.
|
inline |
Used in conjunction with read_data() to initialize a new instance.
Referenced by clone().
| core::scoring::func::USOGFunc::USOGFunc | ( | core::Real | mean, |
| core::Real | std_dev, | ||
| core::Real | weight = 1 |
||
| ) |
| core::scoring::func::USOGFunc::USOGFunc | ( | const utility::vector1< core::Real > & | means, |
| const utility::vector1< core::Real > & | std_devs, | ||
| const utility::vector1< core::Real > & | weights | ||
| ) |
Constructs a new instance from the specified lists of means, standard deviations, and weights. Assumes that all lists have equal length and weights sum to 1.
References means_, std_devs_, utility_exit_with_message, and weights_.
|
inline |
No-op virtual destructor.
|
virtual |
Implements core::scoring::func::Func.
References USOGFunc().
|
virtual |
Returns a value representing the derivative of this function evaluated at a given point.
Implements core::scoring::func::Func.
References background_prob, means_, numGaussians(), score, SQRT_2PI, std_devs_, and weights_.
|
virtual |
Returns a value representing this function evaluated at a given point.
Implements core::scoring::func::Func.
References background_prob, means_, numGaussians(), score, SQRT_2PI, std_devs_, and weights_.
| core::Size core::scoring::func::USOGFunc::numGaussians | ( | ) | const |
Returns the number of Gaussian components.
References means_.
Referenced by dfunc(), func(), and show_definition().
|
virtual |
Initializes this function from the given input stream.
Reimplemented from core::scoring::func::Func.
References means_, core::scoring::func::readValueOrDie(), resetInstance(), s, std_devs_, w(), and weights_.
|
private |
Resets all information associated with this instance.
References means_, std_devs_, and weights_.
Referenced by read_data().
|
virtual |
Writes the definition of this function to the specific output stream.
Reimplemented from core::scoring::func::Func.
References means_, numGaussians(), std_devs_, and weights_.
|
static |
|
private |
Referenced by dfunc(), func(), numGaussians(), read_data(), resetInstance(), show_definition(), and USOGFunc().
|
private |
Referenced by dfunc(), func(), read_data(), resetInstance(), show_definition(), and USOGFunc().
|
private |
Referenced by dfunc(), func(), read_data(), resetInstance(), show_definition(), and USOGFunc().
1.8.7