version  0.0.1
Defines the C++ API for MsPASS
Public Member Functions | Public Attributes | List of all members
mspass::algorithms::deconvolution::ThreeCSpike Class Reference

Public Member Functions

 ThreeCSpike (mspass::utility::dmatrix &d, int k)
 
 ThreeCSpike (const ThreeCSpike &parent)
 
ThreeCSpikeoperator= (const ThreeCSpike &parent)
 

Public Attributes

int col
 
double u [3]
 
double amp
 

Constructor & Destructor Documentation

◆ ThreeCSpike()

mspass::algorithms::deconvolution::ThreeCSpike::ThreeCSpike ( const ThreeCSpike parent)

Copy consructor. Could be defaulted, I think, but best to create it explicitly.

22 {
23  col=parent.col;
24  amp=parent.amp;
25  for(int k=0; k<3; ++k)u[k]=parent.u[k];
26 }
double amp
Definition: GeneralIterDecon.h:29
double u[3]
Definition: GeneralIterDecon.h:27
int col
Definition: GeneralIterDecon.h:25

References amp, col, and u.

Member Function Documentation

◆ operator=()

ThreeCSpike & mspass::algorithms::deconvolution::ThreeCSpike::operator= ( const ThreeCSpike parent)

Makign sure operator= is also essential be sure STL containers work correctly

28 {
29  if(this!=(&parent))
30  {
31  col=parent.col;
32  amp=parent.amp;
33  for(int k=0; k<3; ++k)u[k]=parent.u[k];
34  }
35  return *this;
36 }

References amp, col, and u.

Member Data Documentation

◆ amp

double mspass::algorithms::deconvolution::ThreeCSpike::amp

L2 norm of u savd for efficiency to avoid repeated calculations

◆ col

int mspass::algorithms::deconvolution::ThreeCSpike::col

The column position where this spike should be placed in parent three component dmatrix where time is the column field

◆ u

double mspass::algorithms::deconvolution::ThreeCSpike::u[3]

This holds the amplitude of this spike as three components


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