Jpp
18.5.2
the software that should make you happy
|
Model for fit to acoustics data. More...
#include <JModel.hh>
Classes | |
struct | emission_type |
Map emission key to model parameters of emission. More... | |
struct | hash_map |
Auxiliary data structure with extended functionality of hash-map. More... | |
struct | string_type |
Map string identifier to model parameters of string. More... | |
Public Types | |
typedef JMODEL::JString | JString |
typedef JMODEL::JEmission | JEmission |
typedef size_t | parameter_type |
Type definition of fit parameter. More... | |
Public Member Functions | |
JModel () | |
Default constructor. More... | |
template<class T > | |
JModel (T __begin, T __end) | |
Constructor. More... | |
JModel & | operator= (const JMATH::JZero &zero) |
Reset parameters. More... | |
JMODEL::JOption_t | getOption () const |
Get fit option. More... | |
void | setOption (const int option) |
Set fit option. More... | |
void | clear () |
Clear parameters. More... | |
void | reset () |
Reset parameters. More... | |
JModel & | negate () |
Negate model. More... | |
JModel & | add (const JModel &model) |
Add model. More... | |
JModel & | sub (const JModel &model) |
Subtract model. More... | |
JModel & | mul (const double factor) |
Scale model. More... | |
JModel & | div (const double factor) |
Scale model. More... | |
bool | equals (const JModel &model, const double precision=std::numeric_limits< double >::min()) const |
Check equality. More... | |
size_t | getN () const |
Get number of fit parameters. More... | |
size_t | getIndex (int id, double JString::*p) const |
Get index of fit parameter for given string. More... | |
size_t | getIndex (const JEKey &id, double JEmission::*p) const |
Get index of fit parameter for given emission. More... | |
double | operator[] (const size_t index) const |
Read access to fit parameter value by index. More... | |
double & | operator[] (const size_t index) |
Read/write access to fit parameter value by index. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Public Attributes | |
JACOUSTICS::JModel::emission_type | emission |
JACOUSTICS::JModel::string_type | string |
Private Attributes | |
JMODEL::JOption_t | option |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JModel &model) |
Write model parameters to output stream. More... | |
Model for fit to acoustics data.
The model consists of string parameters and emission parameters.
These parameters relate to the string identifer and emission key, respectively.
Definition at line 476 of file JAcoustics/JModel.hh.
Definition at line 480 of file JAcoustics/JModel.hh.
Definition at line 481 of file JAcoustics/JModel.hh.
typedef size_t JACOUSTICS::JModel::parameter_type |
Type definition of fit parameter.
Definition at line 487 of file JAcoustics/JModel.hh.
|
inline |
Constructor.
This constructor can be used to set up a default model (i.e. all values at zero) for the given set of hits.
The data type corresponding to the hits should provide for the following policy methods.
int getString(); // get string identifier JEKey getEKey(); // get emission key
__begin | begin of hits |
__end | end of hits |
Definition at line 512 of file JAcoustics/JModel.hh.
|
inline |
Reset parameters.
zero | zero |
Definition at line 534 of file JAcoustics/JModel.hh.
|
inline |
|
inline |
Set fit option.
option | option |
Definition at line 558 of file JAcoustics/JModel.hh.
|
inline |
Clear parameters.
Definition at line 580 of file JAcoustics/JModel.hh.
|
inline |
Reset parameters.
Definition at line 590 of file JAcoustics/JModel.hh.
|
inline |
Negate model.
Definition at line 602 of file JAcoustics/JModel.hh.
Add model.
model | model |
Definition at line 617 of file JAcoustics/JModel.hh.
Subtract model.
model | model |
Definition at line 632 of file JAcoustics/JModel.hh.
|
inline |
Scale model.
factor | multiplication factor |
Definition at line 647 of file JAcoustics/JModel.hh.
|
inline |
Scale model.
factor | division factor |
Definition at line 662 of file JAcoustics/JModel.hh.
|
inline |
Check equality.
model | model |
precision | precision |
Definition at line 678 of file JAcoustics/JModel.hh.
|
inline |
Get number of fit parameters.
Definition at line 715 of file JAcoustics/JModel.hh.
|
inline |
Get index of fit parameter for given string.
id | string identifier |
p | pointer to data member |
Definition at line 728 of file JAcoustics/JModel.hh.
|
inline |
Get index of fit parameter for given emission.
id | emission key |
p | pointer to data member |
Definition at line 741 of file JAcoustics/JModel.hh.
|
inline |
Read access to fit parameter value by index.
index | index |
Definition at line 753 of file JAcoustics/JModel.hh.
|
inline |
Read/write access to fit parameter value by index.
index | index |
Definition at line 773 of file JAcoustics/JModel.hh.
|
inlineinherited |
|
friend |
Write model parameters to output stream.
out | output stream |
model | model |
Definition at line 693 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::emission_type JACOUSTICS::JModel::emission |
JACOUSTICS::JModel::string_type JACOUSTICS::JModel::string |
|
private |
Definition at line 1030 of file JAcoustics/JModel.hh.