APFEL 4.8.0
A PDF evolution library in C++
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
apfel::SubGrid Class Reference

Class for the x-space interpolation SubGrids. More...

#include <subgrid.h>

Public Member Functions

 SubGrid (int const &nx, double const &xMin, int const &InterDegree)
 The SubGrid constructor.
 
 SubGrid (std::vector< double > const &xsg, int const &InterDegree)
 The SubGrid constructor.
 
bool operator== (SubGrid const &sg) const
 Check whether SubGrids are equal.
 
bool operator!= (SubGrid const &sg) const
 
int nx () const
 return the number of x points
 
int InterDegree () const
 return the interpolation degree
 
double xMin () const
 return the minimum node value
 
double xMax () const
 return the maximum node value
 
double Step () const
 return the step size of the log grid
 
std::vector< double > const & GetGrid () const
 return the grid
 
std::vector< double > const & GetLogGrid () const
 return the log-grid
 
void Print () const
 print the SubGrid object
 

Private Attributes

int _nx
 Number intervals.
 
int _InterDegree
 Interpolation degree.
 
double _xMin
 Minumim value of x.
 
double _xMax
 Maximum value of x (should always be 1)
 
double _Step
 Step of the logarthmically spaced grid.
 
std::vector< double > _xsg
 Actual grid.
 
std::vector< double > _lxsg
 The log of the grid.
 

Friends

std::ostream & operator<< (std::ostream &os, SubGrid const &sg)
 Method which prints SubGrid with cout <<.
 

Detailed Description

Class for the x-space interpolation SubGrids.

Subgrids are the building blocks of the interpolation procedure. This class defines the "SubGrid" object that includes, apart from the grid itself, also the relevant parameters.

Examples
dglap_test.cc, dglap_test_streamlined.cc, gpd_test.cc, grid_test.cc, massiveCF_test.cc, operator_test.cc, qgriddist_test.cc, set_test.cc, structurefunction_cc_test.cc, structurefunction_massive_test.cc, structurefunction_nc_pol_test.cc, structurefunction_nc_test.cc, subgrid_test.cc, and tmd_test.cc.

Constructor & Destructor Documentation

◆ SubGrid() [1/2]

apfel::SubGrid::SubGrid ( int const & nx,
double const & xMin,
int const & InterDegree )

The SubGrid constructor.

Parameters
nxnumber of grid points in x.
xMinlower edge x of the grid.
InterDegreeinterpolation degree.

◆ SubGrid() [2/2]

apfel::SubGrid::SubGrid ( std::vector< double > const & xsg,
int const & InterDegree )

The SubGrid constructor.

Parameters
xsga std::vector with the nodes of the grid
InterDegreeinterpolation degree

Member Function Documentation

◆ GetGrid()

std::vector< double > const & apfel::SubGrid::GetGrid ( ) const
inline

return the grid

◆ GetLogGrid()

std::vector< double > const & apfel::SubGrid::GetLogGrid ( ) const
inline

return the log-grid

◆ InterDegree()

int apfel::SubGrid::InterDegree ( ) const
inline

return the interpolation degree

◆ nx()

int apfel::SubGrid::nx ( ) const
inline

return the number of x points

◆ operator!=()

bool apfel::SubGrid::operator!= ( SubGrid const & sg) const

◆ operator==()

bool apfel::SubGrid::operator== ( SubGrid const & sg) const

Check whether SubGrids are equal.

Parameters
sgthe SubGrid to be compared
Returns
true/false

◆ Print()

void apfel::SubGrid::Print ( ) const
inline

print the SubGrid object

◆ Step()

double apfel::SubGrid::Step ( ) const
inline

return the step size of the log grid

◆ xMax()

double apfel::SubGrid::xMax ( ) const
inline

return the maximum node value

◆ xMin()

double apfel::SubGrid::xMin ( ) const
inline

return the minimum node value

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
SubGrid const & sg )
friend

Method which prints SubGrid with cout <<.

Member Data Documentation

◆ _InterDegree

int apfel::SubGrid::_InterDegree
private

Interpolation degree.

◆ _lxsg

std::vector<double> apfel::SubGrid::_lxsg
private

The log of the grid.

◆ _nx

int apfel::SubGrid::_nx
private

Number intervals.

◆ _Step

double apfel::SubGrid::_Step
private

Step of the logarthmically spaced grid.

◆ _xMax

double apfel::SubGrid::_xMax
private

Maximum value of x (should always be 1)

◆ _xMin

double apfel::SubGrid::_xMin
private

Minumim value of x.

◆ _xsg

std::vector<double> apfel::SubGrid::_xsg
private

Actual grid.


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