UQTk: Uncertainty Quantification Toolkit 3.1.5
userFunctions.h
Go to the documentation of this file.
1/* =====================================================================================
2
3 The UQ Toolkit (UQTk) version 3.1.5
4 Copyright (2024) NTESS
5 https://www.sandia.gov/UQToolkit/
6 https://github.com/sandialabs/UQTk
7
8 Copyright 2024 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
9 Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10 retains certain rights in this software.
11
12 This file is part of The UQ Toolkit (UQTk)
13
14 UQTk is open source software: you can redistribute it and/or modify
15 it under the terms of BSD 3-Clause License
16
17 UQTk is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 BSD 3 Clause License for more details.
21
22 You should have received a copy of the BSD 3 Clause License
23 along with UQTk. If not, see https://choosealicense.com/licenses/bsd-3-clause/.
24
25 Questions? Contact the UQTk Developers at https://github.com/sandialabs/UQTk/discussions
26 Sandia National Laboratories, Livermore, CA, USA
27===================================================================================== */
28#ifndef USER_FUNCS_H_
29#define USER_FUNCS_H_
30
31// specification of the nominal values for parameters
33// specification of constraint information on parameters (e.g. statistics etc.), and adherence coefficients (ABC deltas)
35// specification of (noisy) data, e.g. read from file
37// specification of the fitting model
38void userRunModel(Array1D<double> &modelDatay, Array1D<double> & modelDatax, Array1D<double> &parameters, Array1D<double> &hyperparameters);
39// specification of user-defined parameter posterior (likelihood x prior). Runs the model and computes the likelihood
41// specification of user-defined parameter likelihood function
42double userComputeParamLogLikelihood(parameterPosteriorInformation * paramPostInfo, Array1D<double> modelDataOut, Array1D<double> parameters, Array1D<double> hyperparameters);
43// specification of user defined statistics of the parameter posterior (e.g. moments)
44void userComputeStatistics(Array1D<double> &parameterStatistics, Array1D<MCMC::chainstate> & parameterChain);
45
46#endif //USER_FUNCS_H_
Stores data of any type T in a 1D array.
Definition Array1D.h:61
Definition dfi.h:97
Definition dfi.h:164
void userComputeStatistics(Array1D< double > &parameterStatistics, Array1D< MCMC::chainstate > &parameterChain)
void userDefineConstraints(dataPosteriorInformation &dataPostInfo)
double userComputeParamLogPosterior(parameterPosteriorInformation *paramPostInfo, Array1D< double > parameters)
void userDefineData(dataPosteriorInformation &dataPostInfo)
void userRunModel(Array1D< double > &modelDatay, Array1D< double > &modelDatax, Array1D< double > &parameters, Array1D< double > &hyperparameters)
double userComputeParamLogLikelihood(parameterPosteriorInformation *paramPostInfo, Array1D< double > modelDataOut, Array1D< double > parameters, Array1D< double > hyperparameters)
void userSpecifyNominalParams(dataPosteriorInformation &dataPostInfo)