Ignore:
Timestamp:
Nov 4, 2016, 11:47:34 AM (8 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Extractors::gatherAllSymmetricDistances..() additionaly gets edge set to set bonded flag.

Location:
src/FunctionApproximation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.cpp

    r814b8c r228340  
    6262    const Fragment::positions_t& positions,
    6363    const Fragment::atomicnumbers_t& atomicnumbers,
     64    const FragmentationEdges::edges_t &edges,
    6465    const size_t globalid)
    6566{
     
    8889          );
    8990      arg.globalid = globalid;
     91      arg.bonded = false;
    9092      LOG(3, "DEBUG: Created argument " << arg << ".");
    9193      result.push_back(arg);
  • src/FunctionApproximation/Extractors.hpp

    r814b8c r228340  
    1616#include <boost/function.hpp>
    1717
     18#include "Fragmentation/EdgesPerFragment.hpp"
    1819#include "Fragmentation/Summation/SetValues/Fragment.hpp"
    1920#include "FunctionApproximation/FunctionModel.hpp"
     
    7172   * \param positions all nuclei positions
    7273   * \param atomicNumber all nuclei atomic numbers
     74   * \param edges edges of the fragment's bond graph
    7375   * \param globalid index to associated in argument_t with
    7476   * \return vector of argument_ , each with a distance
     
    7880      const Fragment::positions_t& positions,
    7981      const Fragment::atomicnumbers_t& atomicnumbers,
     82      const FragmentationEdges::edges_t &edges,
    8083      const size_t globalid);
    8184
     
    8588   * \param positions all nuclei positions
    8689   * \param atomicNumber all nuclei atomic numbers
     90   * \param edges edges of the fragment's bond graph
    8791   * \param index index refers to the index within the global set of configurations
    8892   * \return vector of of argument_t containing all found distances
     
    9195      const Fragment::positions_t& positions,
    9296      const Fragment::atomicnumbers_t& atomicnumbers,
     97      const FragmentationEdges::edges_t &edges,
    9398      const size_t index
    9499      ) {
    95100    // get distance out of Fragment
    96     return gatherAllSymmetricDistanceArguments(positions, atomicnumbers, index);
     101    return gatherAllSymmetricDistanceArguments(positions, atomicnumbers, edges, index);
    97102  }
    98103
  • src/FunctionApproximation/TrainingData.cpp

    r814b8c r228340  
    5050#include "CodePatterns/toString.hpp"
    5151
     52#include "Fragmentation/EdgesPerFragment.hpp"
    5253#include "Fragmentation/Summation/SetValues/Fragment.hpp"
    5354#include "FunctionApproximation/FunctionArgument.hpp"
     
    5960    const HomologyGraph &graph = iter->first;
    6061    const Fragment &fragment = iter->second.fragment;
     62    const FragmentationEdges::edges_t &edges = iter->second.edges;
    6163    FunctionModel::arguments_t all_args = Extractors::gatherAllSymmetricDistances(
    6264        fragment.getPositions(),
    6365        fragment.getAtomicNumbers(),
     66        edges,
    6467        DistanceVector.size()
    6568        );
  • src/FunctionApproximation/unittests/ExtractorsUnitTest.cpp

    r814b8c r228340  
    8989
    9090  // create distances
     91  FragmentationEdges::edges_t edges; // maybe left empty
    9192  FunctionModel::arguments_t args =
    92       Extractors::gatherAllSymmetricDistances(positions, atomicnumbers, 0);
     93      Extractors::gatherAllSymmetricDistances(positions, atomicnumbers, edges, 0);
    9394  CPPUNIT_ASSERT_EQUAL( (size_t)(5*4/2), args.size() );
    9495
Note: See TracChangeset for help on using the changeset viewer.