Changeset 228340 for src/FunctionApproximation
- Timestamp:
- Nov 4, 2016, 11:47:34 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, 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_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- 2124aa
- Parents:
- 814b8c
- git-author:
- Frederik Heber <heber@…> (10/03/16 18:04:17)
- git-committer:
- Frederik Heber <heber@…> (11/04/16 11:47:34)
- Location:
- src/FunctionApproximation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/Extractors.cpp
r814b8c r228340 62 62 const Fragment::positions_t& positions, 63 63 const Fragment::atomicnumbers_t& atomicnumbers, 64 const FragmentationEdges::edges_t &edges, 64 65 const size_t globalid) 65 66 { … … 88 89 ); 89 90 arg.globalid = globalid; 91 arg.bonded = false; 90 92 LOG(3, "DEBUG: Created argument " << arg << "."); 91 93 result.push_back(arg); -
src/FunctionApproximation/Extractors.hpp
r814b8c r228340 16 16 #include <boost/function.hpp> 17 17 18 #include "Fragmentation/EdgesPerFragment.hpp" 18 19 #include "Fragmentation/Summation/SetValues/Fragment.hpp" 19 20 #include "FunctionApproximation/FunctionModel.hpp" … … 71 72 * \param positions all nuclei positions 72 73 * \param atomicNumber all nuclei atomic numbers 74 * \param edges edges of the fragment's bond graph 73 75 * \param globalid index to associated in argument_t with 74 76 * \return vector of argument_ , each with a distance … … 78 80 const Fragment::positions_t& positions, 79 81 const Fragment::atomicnumbers_t& atomicnumbers, 82 const FragmentationEdges::edges_t &edges, 80 83 const size_t globalid); 81 84 … … 85 88 * \param positions all nuclei positions 86 89 * \param atomicNumber all nuclei atomic numbers 90 * \param edges edges of the fragment's bond graph 87 91 * \param index index refers to the index within the global set of configurations 88 92 * \return vector of of argument_t containing all found distances … … 91 95 const Fragment::positions_t& positions, 92 96 const Fragment::atomicnumbers_t& atomicnumbers, 97 const FragmentationEdges::edges_t &edges, 93 98 const size_t index 94 99 ) { 95 100 // get distance out of Fragment 96 return gatherAllSymmetricDistanceArguments(positions, atomicnumbers, index);101 return gatherAllSymmetricDistanceArguments(positions, atomicnumbers, edges, index); 97 102 } 98 103 -
src/FunctionApproximation/TrainingData.cpp
r814b8c r228340 50 50 #include "CodePatterns/toString.hpp" 51 51 52 #include "Fragmentation/EdgesPerFragment.hpp" 52 53 #include "Fragmentation/Summation/SetValues/Fragment.hpp" 53 54 #include "FunctionApproximation/FunctionArgument.hpp" … … 59 60 const HomologyGraph &graph = iter->first; 60 61 const Fragment &fragment = iter->second.fragment; 62 const FragmentationEdges::edges_t &edges = iter->second.edges; 61 63 FunctionModel::arguments_t all_args = Extractors::gatherAllSymmetricDistances( 62 64 fragment.getPositions(), 63 65 fragment.getAtomicNumbers(), 66 edges, 64 67 DistanceVector.size() 65 68 ); -
src/FunctionApproximation/unittests/ExtractorsUnitTest.cpp
r814b8c r228340 89 89 90 90 // create distances 91 FragmentationEdges::edges_t edges; // maybe left empty 91 92 FunctionModel::arguments_t args = 92 Extractors::gatherAllSymmetricDistances(positions, atomicnumbers, 0);93 Extractors::gatherAllSymmetricDistances(positions, atomicnumbers, edges, 0); 93 94 CPPUNIT_ASSERT_EQUAL( (size_t)(5*4/2), args.size() ); 94 95
Note:
See TracChangeset
for help on using the changeset viewer.