RSTT
3.2.0
Regional Seismic Travel Time
|
A UncertaintyPIU object contains the raw data to calculate a modeling error in seconds as a function of distance in radians. More...
#include <UncertaintyPIU.h>
Public Member Functions | |
UncertaintyPIU () | |
Default constructor. More... | |
UncertaintyPIU (const int &phase, const int &attribute) | |
Parameterized constructor that loads model error from a specified file. More... | |
UncertaintyPIU (const string &phase, const string &attribute) | |
Parameterized constructor that loads model error from a specified file. More... | |
UncertaintyPIU (string modelPath, const string &phase, int phasenum) | |
UncertaintyPIU (string modelPath, const int &phase, const int &attribute) | |
Parameterized constructor that loads model error from a specified file. More... | |
UncertaintyPIU (util::DataBuffer &buffer) | |
Parameterized constructor that loads uncertainty data from the input DataBuffer. More... | |
UncertaintyPIU (const UncertaintyPIU &u) | |
Copy constructor. More... | |
virtual | ~UncertaintyPIU () |
Destructor. More... | |
UncertaintyPIU & | operator= (const UncertaintyPIU &u) |
Assignment operator. More... | |
virtual bool | operator== (const UncertaintyPIU &other) const |
virtual bool | operator!= (const UncertaintyPIU &other) const |
bool | operator!= (const UncertaintyPIU &other) |
void | readFile (ifstream &fin) |
void | readFile (geotess::IFStreamAscii &fin) |
void | writeFile (geotess::IFStreamAscii &output) |
void | readFile (geotess::IFStreamBinary &fin) |
void | writeFile (geotess::IFStreamBinary &fout) |
int | getPhase () |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
string | getPhaseStr () |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
int | getAttribute () |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
string | getAttributeStr () |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
double | getUncertainty (const double &distance, double depth=0.0) |
Returns the model uncertainty as a function of angular distance (radians) and depth. More... | |
double | getVariance (const double &distance, double depth=0.0) |
Returns the model variance as a function of angular distance (radians) and depth. More... | |
vector< double > & | getDistances () |
A vector of doubles representing the angular distances (in degrees) More... | |
vector< double > & | getDepths () |
A vector of doubles representing the depths. More... | |
vector< vector< double > > & | getValues () |
A vector of doubles representing the model errors (in seconds) More... | |
void | writeFile (const string &directoryName) |
string | toStringTable () |
string | toStringFile () |
int | getBufferSize () |
Returns the model uncertainty DataBuffer size storage requirement. More... | |
void | serialize (util::DataBuffer &buffer) |
Writes the uncertainty object into the input DataBuffer. More... | |
void | deserialize (util::DataBuffer &buffer) |
Reads the uncertainty object from the input DataBuffer. More... | |
Static Public Member Functions | |
static UncertaintyPIU * | getUncertaintyPIU (ifstream &input, const int &phase, const int &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (ifstream &input, const string &phase, const string &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (geotess::IFStreamAscii &input, const int &phase, const int &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (geotess::IFStreamAscii &input, const string &phase, const string &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (geotess::IFStreamBinary &input, const int &phase, const int &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (geotess::IFStreamBinary &input, const string &phase, const string &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (util::DataBuffer &input, const int &phase, const int &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (util::DataBuffer &input, const string &phase, const string &attribute) |
static UncertaintyPIU * | getUncertaintyPIU (const string &directoryName, const int &phase, const int &attribute) |
static string | getPhase (const int &phaseIndex) |
static string | getAttribute (const int &attributeIndex) |
static int | getPhase (const string &phase) |
static int | getAttribute (const string &attribute) |
A UncertaintyPIU object contains the raw data to calculate a modeling error in seconds as a function of distance in radians.
A UncertaintyPIU object contains the raw data to calculate a modeling error in seconds as a function of distance in radians.
Code includes functionality to store and compute uncertainty for 2D uncertainty tables (distance and depth). But all the tables included with SLBM versions up to and including version 3.0 do not have any depth information. All uncertainties are a function of distance only. Therefore, functionality to handle 2D uncertainty has not been tested and it is considered unlikely that it will work as currently coded.
Definition at line 72 of file UncertaintyPIU.h.
slbm::UncertaintyPIU::UncertaintyPIU | ( | ) |
Default constructor.
Default constructor.
slbm::UncertaintyPIU::UncertaintyPIU | ( | const int & | phase, |
const int & | attribute | ||
) |
Parameterized constructor that loads model error from a specified file.
Parameterized constructor that loads model error data from a file. Uses an SLBM specific phase ordering index.
slbm::UncertaintyPIU::UncertaintyPIU | ( | const string & | phase, |
const string & | attribute | ||
) |
Parameterized constructor that loads model error from a specified file.
Parameterized constructor that loads model error data from a file. Uses an SLBM specific phase ordering index.
slbm::UncertaintyPIU::UncertaintyPIU | ( | string | modelPath, |
const string & | phase, | ||
int | phasenum | ||
) |
from a specified file.
Parameterized constructor that loads model error data from a file. Uses the input phase string to find the uncertainty data file and assigns a phase ordering index.
slbm::UncertaintyPIU::UncertaintyPIU | ( | string | modelPath, |
const int & | phase, | ||
const int & | attribute | ||
) |
Parameterized constructor that loads model error from a specified file.
Parameterized constructor that loads model error data from a file. Uses an SLBM specific phase ordering index.
slbm::UncertaintyPIU::UncertaintyPIU | ( | util::DataBuffer & | buffer | ) |
Parameterized constructor that loads uncertainty data from the input DataBuffer.
Parameterized constructor that loads model error data from a file.
slbm::UncertaintyPIU::UncertaintyPIU | ( | const UncertaintyPIU & | u | ) |
Copy constructor.
Copy constructor.
|
virtual |
Destructor.
Destructor.
void slbm::UncertaintyPIU::deserialize | ( | util::DataBuffer & | buffer | ) |
Reads the uncertainty object from the input DataBuffer.
Reads the uncertainty object from the input DataBuffer.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 506 of file UncertaintyPIU.h.
|
inlinestatic |
Definition at line 346 of file UncertaintyPIU.h.
|
inlinestatic |
Definition at line 370 of file UncertaintyPIU.h.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 516 of file UncertaintyPIU.h.
int slbm::UncertaintyPIU::getBufferSize | ( | ) |
Returns the model uncertainty DataBuffer size storage requirement.
Returns the model uncertainty DataBuffer size storage requirement.
|
inline |
A vector of doubles representing the depths.
A vector of doubles representing the depths
Definition at line 314 of file UncertaintyPIU.h.
|
inline |
A vector of doubles representing the angular distances (in degrees)
A vector of doubles representing the angular distances (in degrees)
Definition at line 307 of file UncertaintyPIU.h.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 501 of file UncertaintyPIU.h.
|
inlinestatic |
Definition at line 329 of file UncertaintyPIU.h.
|
inlinestatic |
Definition at line 361 of file UncertaintyPIU.h.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 511 of file UncertaintyPIU.h.
double slbm::UncertaintyPIU::getUncertainty | ( | const double & | distance, |
double | depth = 0.0 |
||
) |
Returns the model uncertainty as a function of angular distance (radians) and depth.
Returns the model uncertainty as a function of angular distance (radians) and depth. Depth defaults to the surface (0.0).
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
directoryName | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
static |
Retrieve a new UncertaintyPIU object for the specified phase and attribute, loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
attribute | 0:TT, 1:SH, 2:AZ |
|
inline |
A vector of doubles representing the model errors (in seconds)
A vector of doubles representing the model errors (in seconds)
Definition at line 321 of file UncertaintyPIU.h.
double slbm::UncertaintyPIU::getVariance | ( | const double & | distance, |
double | depth = 0.0 |
||
) |
Returns the model variance as a function of angular distance (radians) and depth.
Returns the model variance as a function of angular distance (radians) and depth. Depth defaults to the surface (0.0).
|
inline |
Overloaded inequality operator
other | reference to the other UncertaintyPIU object to which this UncertaintyPIU object is to be compared |
Definition at line 248 of file UncertaintyPIU.h.
|
inlinevirtual |
Definition at line 240 of file UncertaintyPIU.h.
UncertaintyPIU& slbm::UncertaintyPIU::operator= | ( | const UncertaintyPIU & | u | ) |
Assignment operator.
Assignment operator.
|
virtual |
Overloaded equality operator
other | reference to the other UncertaintyPIU object to which this UncertaintyPIU object is to be compared |
void slbm::UncertaintyPIU::readFile | ( | geotess::IFStreamAscii & | fin | ) |
void slbm::UncertaintyPIU::readFile | ( | geotess::IFStreamBinary & | fin | ) |
void slbm::UncertaintyPIU::readFile | ( | ifstream & | fin | ) |
void slbm::UncertaintyPIU::serialize | ( | util::DataBuffer & | buffer | ) |
Writes the uncertainty object into the input DataBuffer.
Writes the uncertainty object into the input DataBuffer.
string slbm::UncertaintyPIU::toStringFile | ( | ) |
string slbm::UncertaintyPIU::toStringTable | ( | ) |
void slbm::UncertaintyPIU::writeFile | ( | const string & | directoryName | ) |
void slbm::UncertaintyPIU::writeFile | ( | geotess::IFStreamAscii & | output | ) |
void slbm::UncertaintyPIU::writeFile | ( | geotess::IFStreamBinary & | fout | ) |