BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
modelutils.h File Reference

Defines class CLASS? More...

Include dependency graph for modelutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gui2
 Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
 
 gui2::Utils
 Collection of utility functions for running quick simulations.
 
 ModelView
 materialitems.h Collection of materials to populate MaterialModel.
 

Functions

DAREFLCORE_EXPORT std::vector< double > gui2::Utils::CreateDiffVector (const std::vector< double > &a, const std::vector< double > &b)
 Returns vector representing elementwise 2*(a-b)/(a+b) difference over two vectors. More...
 
DAREFLCORE_EXPORT std::vector< ModelView::ExternalPropertygui2::Utils::CreateGraphProperties (ExperimentalDataModel *model)
 Returns vector of properties representing GraphItem content of the model. More...
 
DAREFLCORE_EXPORT ModelView::ExternalProperty gui2::Utils::CreateProperty (const ModelView::GraphItem *graph)
 Returns property representing given graph. More...
 
DAREFLCORE_EXPORT ModelView::ExternalProperty gui2::Utils::FindProperty (const std::vector< ModelView::ExternalProperty > &properties, const std::string &id)
 Finds the property with the same id in given vector and returns it. More...
 
DAREFLCORE_EXPORT void gui2::Utils::SetDifference (const ModelView::Data1DItem *data1, const ModelView::Data1DItem *data2, ModelView::Data1DItem *target)
 Make target item represent difference of two Data1DItems. Target will get an axis as in data1. More...
 

Detailed Description

Defines class CLASS?

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file modelutils.h.