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

Axis with fixed bin size. More...

+ Inheritance diagram for FixedBinAxis:

Public Member Functions

 FixedBinAxis (const std::string &name, size_t nbins, double start, double end)
 FixedBinAxis constructor. More...
 
Bin1D bin (size_t index) const
 
std::vector< double > binBoundaries () const
 
double binCenter (size_t index) const
 
std::vector< double > binCenters () const
 
FixedBinAxisclone () const
 
FixedBinAxiscreateClippedAxis (double left, double right) const
 
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

virtual bool equals (const IAxis &other) const
 
void print (std::ostream &ostr) const
 

Detailed Description

Axis with fixed bin size.

Constructor & Destructor Documentation

◆ FixedBinAxis()

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

FixedBinAxis constructor.

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