Changeset 301dbf for src/FunctionApproximation/Extractors.hpp
- Timestamp:
- Feb 24, 2013, 12:58:53 PM (12 years ago)
- 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, 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:
- bc6705
- Parents:
- 4a77be7
- git-author:
- Frederik Heber <heber@…> (10/22/12 13:38:33)
- git-committer:
- Frederik Heber <heber@…> (02/24/13 12:58:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/Extractors.hpp
r4a77be7 r301dbf 23 23 */ 24 24 namespace Extractors { 25 typedef Fragment::charges_t::const_iterator chargeiter_t; 26 typedef std::vector<chargeiter_t> chargeiters_t; 27 28 typedef size_t count_t; 29 typedef Fragment::charge_t element_t; 30 typedef std::map< element_t, count_t> elementcounts_t; 31 typedef std::map< element_t, chargeiters_t > elementtargets_t; 32 25 33 /** Namespace for some internal helper functions. 26 34 * … … 37 45 const Fragment::positions_t &positions, 38 46 const size_t globalid); 47 48 /** Gather all positions from the same aligned vector of charges. 49 * 50 * Basically, we filter the positions indicated by the targets but 51 * from a different vector that has the same layout. 52 * 53 * \param positions positions to search 54 * \param charges charges to match with \targets 55 * \param targets iterators on charges 56 * \return filtered positions 57 */ 58 Fragment::positions_t gatherPositionsFromCharges( 59 const Fragment::positions_t &positions, 60 const Fragment::charges_t &charges, 61 const chargeiters_t targets 62 ); 39 63 } 40 64 … … 53 77 } 54 78 55 /** Gather first distance for the two matching charges.79 /** Gather all positions associated to the matching \a elements. 56 80 * 57 81 * \param fragment fragment with all nuclei positions 58 * \param index index refers to the index within the global set of configurations 59 * \param firstelement first element of pair 60 * \param secondelement second element of pair, order is reflected in indices of return argument_t 61 * \return vector of of argument_t containing all found distances 82 * \param elements tuple of desired elements 83 * \return vector of positions_t containing 62 84 */ 63 F unctionModel::arguments_t gatherFirstDistance(85 Fragment::positions_t gatherDistanceOfTuples( 64 86 const Fragment& fragment, 65 const size_t index, 66 const size_t firstelement, 67 const size_t secondelement 87 const Fragment::charges_t elements 88 ); 89 90 /** Reorder arguments by increasing distance. 91 * 92 * \param args arguments to reorder 93 * \return reordered args 94 */ 95 FunctionModel::arguments_t reorderArgumentsByIncreasingDistance( 96 const FunctionModel::arguments_t &args 68 97 ); 69 98
Note:
See TracChangeset
for help on using the changeset viewer.