version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mspass::algorithms::amplitudes::BandwidthData Class Reference

Holds parameters defining a passband computed from snr. More...

#include <amplitudes.h>

Public Member Functions

double bandwidth_fraction () const
 
double bandwidth () const
 

Public Attributes

double low_edge_f
 
double high_edge_f
 
double low_edge_snr
 
double high_edge_snr
 
double f_range
 

Detailed Description

Holds parameters defining a passband computed from snr.

This deconvolution operator has the option to determine the optimal shaping wavelet on the fly based on data bandwidth. This class is a struct in C++ disguise used to hold the encapsulation of the output of function(s) used to estimate the data bandwidth. This class is used only internally with CNR3CDecon to hold this information. It is not expected to be visible to python in MsPaSS, for example.

Constructor & Destructor Documentation

◆ BandwidthData()

mspass::algorithms::amplitudes::BandwidthData::BandwidthData ( )
inline
318 {
319 low_edge_f = 0.0;
320 high_edge_f = 0.0;
321 low_edge_snr = 0.0;
322 high_edge_snr = 0.0;
323 f_range = 0.0;
324 };
double low_edge_f
Definition amplitudes.h:309
double high_edge_f
Definition amplitudes.h:311
double low_edge_snr
Definition amplitudes.h:313
double high_edge_snr
Definition amplitudes.h:315

Member Function Documentation

◆ bandwidth()

double mspass::algorithms::amplitudes::BandwidthData::bandwidth ( ) const
inline

Return bandwidth in dB.

334 {
335 if (f_range <= 0.0)
336 return 0.0;
337 else {
338 double ratio = high_edge_f / low_edge_f;
339 return 20.0 * log10(ratio);
340 }
341 };

References high_edge_f, and low_edge_f.

◆ bandwidth_fraction()

double mspass::algorithms::amplitudes::BandwidthData::bandwidth_fraction ( ) const
inline

Return a metric of the estimated bandwidth divided by total frequency range

327 {
328 if (f_range <= 0.0)
329 return 0.0;
330 else
331 return (high_edge_f - low_edge_f) / f_range;
332 };

References high_edge_f, and low_edge_f.

Member Data Documentation

◆ high_edge_f

double mspass::algorithms::amplitudes::BandwidthData::high_edge_f

Upper corner frequency for band being defined.

◆ high_edge_snr

double mspass::algorithms::amplitudes::BandwidthData::high_edge_snr

Signal to noise ratio at upper band edge.

◆ low_edge_f

double mspass::algorithms::amplitudes::BandwidthData::low_edge_f

Low corner frequency for band being defined.

◆ low_edge_snr

double mspass::algorithms::amplitudes::BandwidthData::low_edge_snr

Signal to noise ratio at lower band edge.


The documentation for this class was generated from the following file: