BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ConstKBinAxis Class Reference

Axis with fixed bin size in sin(angle) space. More...

+ Inheritance diagram for ConstKBinAxis:

Public Member Functions

 ConstKBinAxis (const std::string &name, size_t nbins, double start, double end)
 ConstKBinAxis constructor. More...
 
Bin1D bin (size_t index) const
 
std::vector< double > binBoundaries () const
 
double binCenter (size_t index) const
 
std::vector< double > binCenters () const
 
ConstKBinAxisclone () const override
 
ConstKBinAxiscreateClippedAxis (double left, double right) const override
 
size_t findClosestIndex (double value) const
 
double lowerBound () const
 
double operator[] (size_t index) const
 
size_t size () const
 
double upperBound () const
 

Protected Member Functions

 ConstKBinAxis (const std::string &name, size_t nbins)
 
bool equals (const IAxis &other) const override
 
void print (std::ostream &ostr) const override
 
void setBinBoundaries (const std::vector< double > &bin_boundaries)
 

Protected Attributes

double m_end
 
size_t m_nbins
 
double m_start
 

Detailed Description

Axis with fixed bin size in sin(angle) space.

Constructor & Destructor Documentation

◆ ConstKBinAxis()

ConstKBinAxis::ConstKBinAxis ( const std::string &  name,
size_t  nbins,
double  start,
double  end 
)

ConstKBinAxis constructor.

Parameters
nameAxis name
nbinsnumber of bins
startlow edge of first bin
endupper edge of last bin