String parameters.
More...
#include <JModel.hh>
String parameters.
Definition at line 59 of file JAcoustics/JModel.hh.
JACOUSTICS::JMODEL::JString::JString |
( |
| ) |
|
|
inline |
JACOUSTICS::JMODEL::JString::JString |
( |
const double |
tx, |
|
|
const double |
ty, |
|
|
const double |
tx2 = 0.0 , |
|
|
const double |
ty2 = 0.0 , |
|
|
const double |
vs = 0.0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
tx | slope dx/dz |
ty | slope dy/dz |
tx2 | 2nd order correction of slope dx/dz |
ty2 | 2nd order correction of slope dy/dz |
vs | stretching factor |
Definition at line 84 of file JAcoustics/JModel.hh.
Get number of fit parameters.
- Parameters
-
- Returns
- number of parameters
Definition at line 103 of file JAcoustics/JModel.hh.
121 THROW(JValueOutOfRange,
"Invalid option " << option);
fit times of emission of emitters and tilt angles of strings with second order correction ...
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
fit times of emission of emitters and tilt angles of strings
fit only times of emission of emitters
fit times of emission of emitters and tilt angles of strings with second order correction and stretch...
JString& JACOUSTICS::JMODEL::JString::negate |
( |
| ) |
|
|
inline |
JString& JACOUSTICS::JMODEL::JString::mul |
( |
const double |
factor | ) |
|
|
inline |
Scale string.
- Parameters
-
factor | multiplication factor |
- Returns
- this string
Definition at line 185 of file JAcoustics/JModel.hh.
JString& JACOUSTICS::JMODEL::JString::div |
( |
const double |
factor | ) |
|
|
inline |
bool JACOUSTICS::JMODEL::JString::equals |
( |
const JString & |
string, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inline |
Check equality.
- Parameters
-
string | string |
precision | precision |
- Returns
- true if strings are equal; else false
Definition at line 222 of file JAcoustics/JModel.hh.
225 return (fabs(
tx -
string.
tx) <= precision &&
226 fabs(
ty -
string.
ty) <= precision &&
227 fabs(
tx2 -
string.
tx2) <= precision &&
228 fabs(
ty2 -
string.
ty2) <= precision &&
229 fabs(
vs -
string.
vs) <= precision);
double JACOUSTICS::JMODEL::JString::getLengthSquared |
( |
| ) |
const |
|
inline |
double JACOUSTICS::JMODEL::JString::getLength |
( |
| ) |
const |
|
inline |
Get length.
- Returns
- length
Definition at line 249 of file JAcoustics/JModel.hh.
double getLengthSquared() const
Get length squared.
double JACOUSTICS::JMODEL::JString::getAngle |
( |
| ) |
const |
|
inline |
double JACOUSTICS::JMODEL::JString::getDot |
( |
const JString & |
string | ) |
const |
|
inline |
template<class JFirst_t, class JSecond_t = JNullType>
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
356 return static_cast<JFirst_t&
>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*
this),
object);
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JString & |
string |
|
) |
| |
|
friend |
Read string parameters from input stream.
- Parameters
-
in | input stream |
string | string |
- Returns
- input stream
Definition at line 289 of file JAcoustics/JModel.hh.
291 return in >>
string.tx >>
string.ty >>
string.tx2 >>
string.ty2 >>
string.vs;
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JString & |
string |
|
) |
| |
|
friend |
Write string parameters to output stream.
- Parameters
-
out | output stream |
string | string |
- Returns
- output stream
Definition at line 302 of file JAcoustics/JModel.hh.
307 return out <<
FIXED(10,7) <<
string.tx <<
' '
308 <<
FIXED(10,7) <<
string.ty <<
' '
311 <<
FIXED(8,5) <<
string.vs;
Auxiliary data structure for floating point format specification.
Auxiliary data structure for floating point format specification.
double JACOUSTICS::JMODEL::JString::tx |
double JACOUSTICS::JMODEL::JString::ty |
double JACOUSTICS::JMODEL::JString::tx2 |
double JACOUSTICS::JMODEL::JString::ty2 |
double JACOUSTICS::JMODEL::JString::vs |
The documentation for this struct was generated from the following file: