Rosetta 3.4
|
Derived class of class Func representing a Mixture of several distinct functions. The function is of the form ln( g(r) / h(r) ), where g(r) is a mixture of a Gaussian and Exponential distributions, and h(r) is a Gaussian distribution. See methods and implementation for more information. More...
#include <MixtureFunc.hh>
Public Member Functions | |
MixtureFunc (Real const anchor, Real const gaussian_param, Real const exp_param, Real const mixture_param, Real const bg_mean, Real const bg_sd) | |
FuncOP | clone () const |
returns a clone of this MixtureFunc | |
Real | func (Real const x) const |
Returns the value of this MixtureFunc evaluated at distance x. | |
Real | dfunc (Real const x) const |
Returns the value of the first derivative of this MixtureFunc at distance x. | |
virtual void | show_definition (std::ostream &out) const |
show the definitio of this MixtureFunc to the specified output stream. | |
Real | dfunc_component (Real const x, Real &g, Real &h, Real &g_prime, Real &h_prime) const |
Function that's used for debugging. Given x, this calculates g(x), h(x), g'(x) and h'(x). | |
Real | calc_kl_divergence () const |
Calculates the K-L divergence between the inferred and background distributions. | |
virtual void | show (std::ostream &out) const |
Prints this MixtureFunc to the given ostream. | |
void | read_data (std::istream &in) |
The parameters are: | |
Real | func_ (Real x) const |
Returns the value of this MixtureFunc evaluated at distance x. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const MixtureFunc &f) |
Calls show( out ) on this MixtureFunc. |
Derived class of class Func representing a Mixture of several distinct functions. The function is of the form ln( g(r) / h(r) ), where g(r) is a mixture of a Gaussian and Exponential distributions, and h(r) is a Gaussian distribution. See methods and implementation for more information.
core::scoring::constraints::MixtureFunc::MixtureFunc | ( | Real const | anchor, |
Real const | gaussian_param, | ||
Real const | exp_param, | ||
Real const | mixture_param, | ||
Real const | bg_mean, | ||
Real const | bg_sd | ||
) | [inline] |
Constructor for MixtureFunc. Arguments to the constructor are:
Referenced by clone().
Real core::scoring::constraints::MixtureFunc::calc_kl_divergence | ( | ) | const |
Calculates the K-L divergence between the inferred and background distributions.
References core::sequence::end.
FuncOP core::scoring::constraints::MixtureFunc::clone | ( | ) | const [inline, virtual] |
returns a clone of this MixtureFunc
Implements core::scoring::constraints::Func.
References MixtureFunc().
Returns the value of the first derivative of this MixtureFunc at distance x.
Implements core::scoring::constraints::Func.
Real core::scoring::constraints::MixtureFunc::dfunc_component | ( | Real const | x, |
Real & | g, | ||
Real & | h, | ||
Real & | g_prime, | ||
Real & | h_prime | ||
) | const |
Function that's used for debugging. Given x, this calculates g(x), h(x), g'(x) and h'(x).
References core::scoring::constraints::dexponential(), core::scoring::constraints::dgaussian(), core::scoring::constraints::exponential_deriv(), and core::scoring::constraints::gaussian_deriv().
Returns the value of this MixtureFunc evaluated at distance x.
Implements core::scoring::constraints::Func.
Returns the value of this MixtureFunc evaluated at distance x.
private
References core::scoring::constraints::dexponential(), and core::scoring::constraints::dgaussian().
void core::scoring::constraints::MixtureFunc::read_data | ( | std::istream & | in | ) | [virtual] |
The parameters are:
Initializes this MixtureFunc from the given istream. An example of the type of string from which the istream should be constructed is: "MIXTUREFUNC 6.9734 3.598 0.222 0.872 19.396 7.643". The interpretation is to create initialize this MixtureFunc object with the following parameters:
Reimplemented from core::scoring::constraints::Func.
void core::scoring::constraints::MixtureFunc::show | ( | std::ostream & | out | ) | const [virtual] |
Prints this MixtureFunc to the given ostream.
Reimplemented from core::scoring::constraints::Func.
References protocols::comparative_modeling::features::A, and core::sequence::end.
void core::scoring::constraints::MixtureFunc::show_definition | ( | std::ostream & | out | ) | const [virtual] |
show the definitio of this MixtureFunc to the specified output stream.
Reimplemented from core::scoring::constraints::Func.
std::ostream& operator<< | ( | std::ostream & | out, |
const MixtureFunc & | f | ||
) | [friend] |
Calls show( out ) on this MixtureFunc.