The RigidCLL library
testRigidCLL.cpp File ReferenceExample of how to use the RigidCLL library. More... #include "RigidCLL.h" #include <iostream> #include <algorithm> #include <stdlib.h> #include <time.h> #include <math.h> #include <unistd.h> #include <sys/resource.h>
Include dependency graph for testRigidCLL.cpp:
Go to the source code of this file.
Detailed DescriptionSimple example of how to use the functionalities implemented in the RigidCLL library. Definition in file testRigidCLL.cpp. Define Documentation
Returns a random real number with uniform distribution in the range [-s,s]
Definition at line 25 of file testRigidCLL.cpp. Referenced by RandomTranslation().
Number of random perturbations when computing the execution times. By generating random perturbations we collect more realistic data. Definition at line 33 of file testRigidCLL.cpp. Referenced by main().
The interaction detection is so fast that we have to repeat it many times to get accurate (averaged) statistics on its execution cost (i.e., execution time). Definition at line 41 of file testRigidCLL.cpp. Referenced by main(). Function Documentation
Returns the miliseconds used since the process started. Definition at line 99 of file testRigidCLL.cpp. Referenced by main().
Here is the caller graph for this function:
Defines a random translation with the given noise values. The noise is generated uniformly in the range [-s,s], where 's' is the given noise level. The random transforms are used to randomly move the rigids during the test.
Definition at line 110 of file testRigidCLL.cpp. References RAND_DOUBLE. Referenced by main().
Here is the caller graph for this function:
Prints the interactions detected with RigidCLL::StericClash, RigidCLL::CLLStericClash, or RigidCLL::BruteForceStericClash. Note that if there are many interactions (more than 20) only the first and the last five are displayed.
Definition at line 118 of file testRigidCLL.cpp. Referenced by main().
Here is the caller graph for this function:
Compares vectors of interacting atoms resulting fom call to RigidCLL::Interactions RigidCLL::CLLInteractions, or RigidCLL::BruteForceInteractions. This is used to verify the outputs.
Definition at line 154 of file testRigidCLL.cpp. Referenced by main().
Here is the caller graph for this function:
Main body of the RigidCLL test application. Use:
where filename is the name of the file from where to read the atom/rigid information and cutoff is the threshold to use when detecting interacting atoms. The value for the cutoff is optional and if not given 2 is used.
Definition at line 194 of file testRigidCLL.cpp. References RigidCLL::BruteForceInteractions(), RigidCLL::BruteForceStericClash(), RigidCLL::CLLInteractions(), RigidCLL::CLLStericClash(), CmpInteractions(), RigidCLL::GetBBSize(), RigidCLL::GetCutOff(), RigidCLL::GetNumRigids(), getTime(), RigidCLL::Interactions(), N_EXPERIMENTS, PrintInteractions(), RandomTranslation(), REPETITIONS, RigidCLL::SetCutOff(), RigidCLL::StericClash(), and RigidCLL::WarmUp().
Here is the call graph for this function:
|
Follow us!