version  0.0.1
Defines the C++ API for MsPASS
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.

Member Function Documentation

◆ bandwidth()

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

Return bandwidth in dB.

305  {
306  if(f_range<=0.0)
307  return 0.0;
308  else
309  {
310  double ratio=high_edge_f/low_edge_f;
311  return 20.0*log10(ratio);
312  }
313  };
double low_edge_f
Definition: amplitudes.h:278
double high_edge_f
Definition: amplitudes.h:280

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

297  {
298  if(f_range<=0.0)
299  return 0.0;
300  else
301  return (high_edge_f-low_edge_f)/f_range;
302  };

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: