$darkmode
DENOPTIM
denoptim.fragmenter.FragmentClustererTest Class Reference

Unit test for fragmenter's tools. More...

Collaboration diagram for denoptim.fragmenter.FragmentClustererTest:
[legend]

Public Member Functions

void testDistanceAsRMSD ()
 
void testGetRMSDStatsOfNoisyDistorsions ()
 
void testCluster () throws Exception
 
void testCluster2 () throws Exception
 

Private Member Functions

IAtomContainer getMol (Fragment frag)
 Converts the fragment into a collection of atoms where attachment points are converted into atoms that can be visualized with any molecular viewer. More...
 
Point3d getNoisyPoint (Point3d p, double noiseMagnitude)
 The noise magnitude is to be interpreted as half of the overall magnitude. More...
 

Private Attributes

IChemObjectBuilder builder = SilentChemObjectBuilder.getInstance()
 Private builder of atom containers. More...
 
Randomizer rng = new Randomizer(1L)
 Random number generator. More...
 

Detailed Description

Unit test for fragmenter's tools.

Definition at line 38 of file FragmentClustererTest.java.

Member Function Documentation

◆ getMol()

IAtomContainer denoptim.fragmenter.FragmentClustererTest.getMol ( Fragment  frag)
private

Converts the fragment into a collection of atoms where attachment points are converted into atoms that can be visualized with any molecular viewer.

Definition at line 507 of file FragmentClustererTest.java.

References denoptim.graph.Fragment.atoms(), denoptim.fragmenter.FragmentClustererTest.builder, and denoptim.graph.Fragment.getAttachmentPoints().

Referenced by denoptim.fragmenter.FragmentClustererTest.testCluster().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNoisyPoint()

Point3d denoptim.fragmenter.FragmentClustererTest.getNoisyPoint ( Point3d  p,
double  noiseMagnitude 
)
private

The noise magnitude is to be interpreted as half of the overall magnitude.

And the distribution of noise is uniform in [-noiseMagnitude,noiseMagnitude].

Definition at line 607 of file FragmentClustererTest.java.

References denoptim.utils.Randomizer.getNoisyPoint(), and denoptim.fragmenter.FragmentClustererTest.rng.

Referenced by denoptim.fragmenter.FragmentClustererTest.testCluster(), and denoptim.fragmenter.FragmentClustererTest.testCluster2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testCluster()

◆ testCluster2()

void denoptim.fragmenter.FragmentClustererTest.testCluster2 ( ) throws Exception

◆ testDistanceAsRMSD()

void denoptim.fragmenter.FragmentClustererTest.testDistanceAsRMSD ( )

Definition at line 54 of file FragmentClustererTest.java.

References denoptim.fragmenter.FragmentClusterer.DistanceAsRMSD.compute().

Here is the call graph for this function:

◆ testGetRMSDStatsOfNoisyDistorsions()

void denoptim.fragmenter.FragmentClustererTest.testGetRMSDStatsOfNoisyDistorsions ( )

Definition at line 120 of file FragmentClustererTest.java.

References denoptim.fragmenter.FragmentClusterer.getRMSDStatsOfNoisyDistorsions().

Here is the call graph for this function:

Member Data Documentation

◆ builder

IChemObjectBuilder denoptim.fragmenter.FragmentClustererTest.builder = SilentChemObjectBuilder.getInstance()
private

◆ rng

Randomizer denoptim.fragmenter.FragmentClustererTest.rng = new Randomizer(1L)
private

Random number generator.

Definition at line 49 of file FragmentClustererTest.java.

Referenced by denoptim.fragmenter.FragmentClustererTest.getNoisyPoint().


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