RSTT
3.1.0
Regional Seismic Travel Time
|
Go to the documentation of this file.
38 #ifndef UncertaintyPathDep_H
39 #define UncertaintyPathDep_H
47 #include "IFStreamAscii.h"
48 #include "IFStreamBinary.h"
236 return getPhase(phaseNum);
269 const vector<int>& crustNodeIds,
const vector<double>& crustWeights,
270 const vector<int>& headWaveNodeIds,
const vector<double>& headWaveWeights,
271 const vector<vector<int> >& headWaveNodeNeighbors,
const bool& calcRandomError =
false,
272 bool printDebugInfo =
false);
278 return (pathUncRandomError.size() > 0);
287 return Uncertainty::getPhase(phaseIndex);
292 return Uncertainty::getPhase(phase);
296 return pathUncCrustError;
300 return pathUncCrustError;
304 return pathUncRandomError;
308 return pathUncRandomError;
312 return pathUncDistanceBins;
316 return pathUncDistanceBins;
320 return pathUncModelError;
324 return pathUncModelError;
342 void readFile(
const string& filename);
368 vector<double> pathUncCrustError;
374 vector<double> pathUncDistanceBins;
382 vector<vector<double> > pathUncRandomError;
389 vector<vector<double> > pathUncModelError;
396 vector<vector<double> > pathUncBias;
402 #endif // UncertaintyPathDep_H
const vector< vector< double > > & getPathUncRandomError() const
UncertaintyPathDep(const string &phase)
Parameterized constructor that that defines an empty path path specific model error for the input pha...
vector< double > & getPathUncDistanceBins()
int getPhase() const
A public convenience accessor used to verify the error data for the correct model phase is loaded in ...
double getUncertainty(double distance, const vector< int > &crustNodeIds, const vector< double > &crustWeights, const vector< int > &headWaveNodeIds, const vector< double > &headWaveWeights, const vector< vector< int > > &headWaveNodeNeighbors, const bool &calcRandomError=false, bool printDebugInfo=false)
Returns the model uncertainty as a function of angular distance (degrees), crustal grid vertex indice...
UncertaintyPathDep(int phase)
Parameterized constructor that defines an empty path path specific model error for the input phase.
void readFile(ifstream &fin)
vector< vector< double > > & getPathUncRandomError()
const string getPhaseStr() const
A public convenience accessor used to verify the error data for the correct model phase is loaded in ...
UncertaintyPathDep(string modelPath, int phase)
Parameterized constructor that loads path dependent model error definition from a specified file.
static UncertaintyPathDep * getUncertainty(geotess::IFStreamAscii &input, const string &phase)
void readFile(geotess::IFStreamBinary &fin)
const vector< double > & getPathUncDistanceBins() const
void writeFile(geotess::IFStreamBinary &fout)
bool operator!=(const UncertaintyPathDep &other)
UncertaintyPathDep & operator=(const UncertaintyPathDep &u)
Assignment operator.
bool operator==(const UncertaintyPathDep &other)
UncertaintyPathDep(string modelPath, const string &phase)
void readFile(geotess::IFStreamAscii &fin)
~UncertaintyPathDep()
Destructor.
static UncertaintyPathDep * getUncertainty(const string &modelPath, int phase)
static UncertaintyPathDep * getUncertainty(geotess::IFStreamBinary &input, const string &phase)
static UncertaintyPathDep * getUncertainty(ifstream &input, int phase)
static UncertaintyPathDep * getUncertainty(ifstream &input, const string &phase)
const vector< double > & getPathUncCrustError() const
UncertaintyPathDep()
Default constructor.
bool isRandomErrorDefined() const
Returns true if random error is defined.
static string getPhase(const int &phaseIndex)
void writeFile(geotess::IFStreamAscii &output)
const string & getLoadedFileName() const
Returns loaded file name or "not specified".
const vector< vector< double > > & getPathUncModelError() const
static UncertaintyPathDep * getUncertainty(geotess::IFStreamAscii &input, int phase)
static UncertaintyPathDep * getUncertainty(geotess::IFStreamBinary &input, int phase)
vector< vector< double > > & getPathUncModelError()
A UncertaintyPathDep object contains the raw data to calculate a path dependent modeling error in sec...
vector< double > & getPathUncCrustError()
static int getPhase(const string &phase)
vector< vector< double > > & getPathUncBias()
const vector< vector< double > > & getPathUncBias() const
const string & getGridId() const
Returns the grid id for which this path dependent uncertainty objects data are defined.
UncertaintyPathDep(const UncertaintyPathDep &u)
Copy constructor.