Ignore:
Timestamp:
Oct 31, 2011, 5:13:52 PM (14 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, Candidate_v1.7.0, Candidate_v1.7.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
5982c5
Parents:
19bc74
Message:

HUGE: Update on documenation.

  • a general skeleton of the documentation is now in place with all the major components of MoleCuilder explained to some extent.
  • some information has been transfered from TRAC (e.g. install procecure) into this doxygen documentation where it is general and not specific to the situation at our institute.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/documentation/constructs/randomnumbers.dox

    r19bc74 r750cff  
    1212 *    Author: heber
    1313 */
     14
     15/** \page randomnumbers Random Number Generation
     16 *
     17 * There is a factory for random number generators present. This implementation
     18 * has been necessary due to lack of a common interface on the side of the
     19 * boost::random programmer. Hence, we added a RandomNumberInterface for both
     20 * engine and distribution and a factory for both and finally the conglomerate
     21 * for combining both into a single RandomNumberGenerator.
     22 *
     23 * Whereever random numbers should be picked with a varying distribution or
     24 * even better a user-controlled one, this RandomNumberGenerator should be
     25 * used, e.g. as this
     26 * \code
     27 * RandomNumberGenerator &random = RandomNumberGeneratorFactory::getInstance().makeRandomNumberGenerator();
     28 * const double rng_min = random.min();
     29 * const double rng_max = random.max();
     30 * \endcode
     31 * This returns a reference to a random number generator instance. And also we obtain
     32 * its RandomNumberGenerator::min() and RandomNumberGenerator::max() values.
     33 * Then, we may create random values as simple as this:
     34 * \code
     35 * double random_value = (random()/((rng_max-rng_min)/2.) - 1.);
     36 * \endcode
     37 * which creates a random value within [-1,1]. Note that random() here is
     38 * RandomNumberGenerator::operator() and not some global function.
     39 *
     40 * \note Do not necessarily use the random number generation when just a uniform
     41 * distribution is required. The implementation is especially designed to allow
     42 * the user control over the random number distribution. E.g. when filling the void
     43 * space in a simulation box with molecules he may choose a discrete distribution
     44 * with a small number of values to have a few, but random orientations of the
     45 * molecules (MoleculeFillVoidWithMoleculeAction()).
     46 *
     47 * \date 2011-10-31
     48 *
     49 */
Note: See TracChangeset for help on using the changeset viewer.