IMP logo

IMP::core::Cosine Class Reference


Detailed Description

Cosine function.

This evaluates the function |k| - k cos(nf + a) where k is a force constant, n the periodicity, a the phase, and f the input value. This is most commonly used for dihedral angle restraints, e.g. in the CHARMM force field.

Inheritance diagram for IMP::core::Cosine:

Inheritance graph
[legend]

Public Member Functions

 Cosine (Float force_constant, int periodicity, Float phase)
 Constructor.
virtual double evaluate (double feature) const
virtual DerivativePair evaluate_with_derivative (double feature) const
virtual std::string get_type_name () const
virtual ::IMP::VersionInfo get_version_info () const

Friends

template<class T >
void IMP::internal::unref (T *)

Constructor & Destructor Documentation

IMP::core::Cosine::Cosine ( Float  force_constant,
int  periodicity,
Float  phase 
)

Constructor.

Parameters:
[in] force_constant Force constant (score units)
[in] periodicity Periodicity (generally 1-6)
[in] phase Phase (radians)


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

Generated on Mon Mar 8 23:08:55 2010 for IMP by doxygen 1.5.8