Jpp
master_rocky-37-gf0c5bc59d
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_evaluator |
Auxiliary data structure for common fit parameters. 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 |
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 477 of file JAcoustics/JModel.hh.
Definition at line 481 of file JAcoustics/JModel.hh.
Definition at line 482 of file JAcoustics/JModel.hh.
|
inline |
Default constructor.
Definition at line 488 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 507 of file JAcoustics/JModel.hh.
|
inline |
Reset parameters.
zero | zero |
Definition at line 529 of file JAcoustics/JModel.hh.
|
inline |
|
inline |
Set fit option.
option | option |
Definition at line 553 of file JAcoustics/JModel.hh.
|
inline |
|
inline |
|
inline |
Negate model.
Definition at line 597 of file JAcoustics/JModel.hh.
Add model.
model | model |
Definition at line 612 of file JAcoustics/JModel.hh.
Subtract model.
model | model |
Definition at line 627 of file JAcoustics/JModel.hh.
|
inline |
Scale model.
factor | multiplication factor |
Definition at line 642 of file JAcoustics/JModel.hh.
|
inline |
Scale model.
factor | division factor |
Definition at line 657 of file JAcoustics/JModel.hh.
|
inline |
Check equality.
model | model |
precision | precision |
Definition at line 673 of file JAcoustics/JModel.hh.
|
inline |
Get number of fit parameters.
Definition at line 710 of file JAcoustics/JModel.hh.
|
inline |
|
inline |
Get index of fit parameter for given emission.
id | emission key |
p | pointer to data member |
Definition at line 736 of file JAcoustics/JModel.hh.
|
inline |
Read access to fit parameter value by index.
index | index |
Definition at line 748 of file JAcoustics/JModel.hh.
|
inline |
Read/write access to fit parameter value by index.
index | index |
Definition at line 768 of file JAcoustics/JModel.hh.
|
inlineinherited |
|
friend |
Write model parameters to output stream.
out | output stream |
model | model |
Definition at line 688 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::emission_type JACOUSTICS::JModel::emission |
JACOUSTICS::JModel::string_type JACOUSTICS::JModel::string |
|
private |
Definition at line 1050 of file JAcoustics/JModel.hh.