IMP logo
Classes | Functions | Variables
IMP.test Namespace Reference

Detailed Description

Methods and classes for testing the IMP kernel and modules.

Classes

class  ApplicationTestCase
 Super class for simple IMP application test cases. More...
class  DirectorObjectChecker
 Check to make sure the number of director references is as expected. More...
class  RefCountChecker
 Check to make sure the number of C++ object references is as expected. More...
class  TestCase
 Super class for IMP test cases. More...
class  TestRefiner
 A class which makes sure that the right particles are passed back. More...

Functions

def numerical_derivative
 Calculate the derivative of the single-value function func at point val.
def xyz_numerical_derivatives
 Calculate the x,y and z derivatives of model's scoring function on the xyz particle.

Variables

 _basis_vector
 _model
 _starting_coordinates
 _xyz
 expectedFailure = unittest.expectedFailure
 set = set
 skip = unittest.skip
 skipIf = unittest.skipIf
 skipUnless = unittest.skipUnless
tuple unittest = __load_unittest_package()

Function Documentation

def IMP.test.numerical_derivative (   func,
  val,
  step 
)

Calculate the derivative of the single-value function func at point val.

The derivative is calculated using simple finite differences starting with the given step; Richardson extrapolation is then used to extrapolate the derivative at step=0.

def IMP.test.xyz_numerical_derivatives (   model,
  xyz,
  step 
)

Calculate the x,y and z derivatives of model's scoring function on the xyz particle.

The derivatives are approximated numerically using the numerical_derivatives() function.


Generated on Tue May 22 2012 23:33:37 for IMP by doxygen 1.8.1