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

Brief description of class still missing. More...

#include <TheoreticalFK.h>

Inheritance diagram for QGpCoreWave::TheoreticalFK:
QGpCoreTools::AbstractFunction2 QGpCoreWave::TheoreticalLinearFK ArrayCore::KmaxSolver ArrayCore::KminSolver

List of all members.

Public Member Functions

const QVector< Point2D > & stations () const
 TheoreticalFK (const QVector< Point2D > &stations)
virtual double value (double kx, double ky) const

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References stations(), and TRACE.

{
  TRACE;
  _stations=stations;
  _fac=_stations.count();
  _fac=1.0/(_fac*_fac);
}

Member Function Documentation

Referenced by ArrayCore::KminSolver::calculate(), and TheoreticalFK().

{return _stations;}
double QGpCoreWave::TheoreticalFK::value ( double  x,
double  y 
) const [inline, virtual]

Implemement this function to calculate the 2D function at x and y.

Implements QGpCoreTools::AbstractFunction2.

References QGpCoreTools::cos(), QGpCoreTools::sin(), TRACE, QGpCoreTools::Point2D::x(), and QGpCoreTools::Point2D::y().

{
  TRACE;
  double csum=0.0, ssum=0.0, val;
  for(int i=_stations.count()-1; i>=0; i--) {
    const Point2D& s=_stations[i];
    val=kx*s.x()+ky*s.y();
    csum+=cos(val);
    ssum+=sin(val);
  }
  return (csum*csum+ssum*ssum)*_fac;
}

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