All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Member Functions
QGpCoreWave::EllipticityFactory Class Reference

Brief description of class still missing. More...

#include <EllipticityFactory.h>

Inheritance diagram for QGpCoreWave::EllipticityFactory:
QGpCoreWave::ModalFactory

List of all members.

Public Member Functions

 EllipticityFactory ()
void exp10 ()
void log10 ()
virtual const RealValuemode (const Mode &m) const
double peakMisfit (const RealStatisticalValue &val, DispersionFactory &disp, const Seismic1DModel *model)
virtual void setMode (const Mode &m)
virtual ModalStoragestorage (int) const
virtual int storageCount () const
Ellipticityvalues ()
 ~EllipticityFactory ()

Protected Member Functions

virtual ModalStoragenewStorage (int nModes)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

References TRACE.

{
  TRACE;
  _values=0;
}

References TRACE.

{
  TRACE;
  delete _values;
}

Member Function Documentation

{_values->exp10();}
{_values->log10();}
const RealValue * QGpCoreWave::EllipticityFactory::mode ( const Mode m) const [virtual]

Implements QGpCoreWave::ModalFactory.

References QGpCoreWave::Mode::index(), and QGpCoreWave::ModalStorage::mode().

{
  return _values ? _values->mode(m.index()) : 0;
}
virtual ModalStorage* QGpCoreWave::EllipticityFactory::newStorage ( int  nModes) [inline, protected, virtual]

Implements QGpCoreWave::ModalFactory.

References Ellipticity.

{return new Ellipticity(nModes, x());}

References QGpCoreWave::ModalStorage::abs(), QGpCoreWave::Ellipticity::peakMisfit(), QGpCoreWave::DispersionFactory::phaseRayleigh(), and TRACE.

Referenced by DinverDCCore::TargetList::surfaceMisfit().

{
  TRACE;
  if(_values && disp.phaseRayleigh()) {
    Rayleigh rayleigh(model);
    // TODO generalize to n modes
    double m=_values->peakMisfit(0, val, *disp.phaseRayleigh(), &rayleigh);
    // Refinements produced signed ellipticity, for storage, abs is prefered
    _values->abs();
    return m;
  } else return 0.0;
}
void QGpCoreWave::EllipticityFactory::setMode ( const Mode m) [virtual]
ModalStorage * QGpCoreWave::EllipticityFactory::storage ( int  ) const [inline, virtual]

Implements QGpCoreWave::ModalFactory.

References TRACE.

{
  TRACE;
  return _values;
}
virtual int QGpCoreWave::EllipticityFactory::storageCount ( ) const [inline, virtual]

Implements QGpCoreWave::ModalFactory.

{return 1;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines