| BornAgain
    1.18.0
    Simulate and fit neutron and x-ray scattering at grazing incidence | 
Axis with fixed bin size. More...
 Inheritance diagram for FixedBinAxis:
 Inheritance diagram for FixedBinAxis:| Public Member Functions | |
| FixedBinAxis (const std::string &name, size_t nbins, double start, double end) | |
| FixedBinAxis constructor.  More... | |
| FixedBinAxis * | clone () const | 
| clone function | |
| size_t | size () const | 
| retrieve the number of bins | |
| double | operator[] (size_t index) const | 
| indexed accessor retrieves a sample | |
| Bin1D | getBin (size_t index) const | 
| retrieve a 1d bin for the given index | |
| double | getMin () const | 
| Returns value of first point of axis. | |
| double | getMax () const | 
| Returns value of last point of axis. | |
| double | getBinCenter (size_t index) const | 
| size_t | findClosestIndex (double value) const | 
| find bin index which is best match for given value | |
| std::vector< double > | getBinCenters () const | 
| std::vector< double > | getBinBoundaries () const | 
| FixedBinAxis * | createClippedAxis (double left, double right) const | 
| Creates a new clipped axis. | |
| std::string | pyString (const std::string &units, size_t) const final | 
|  Public Member Functions inherited from IAxis | |
| IAxis (const std::string &name) | |
| constructors | |
| virtual | ~IAxis () | 
| destructor | |
| std::string | getName () const | 
| retrieve the label of the axis | |
| void | setName (std::string name) | 
| Sets the axis label. | |
| bool | operator== (const IAxis &right) const | 
| test for equality | |
| bool | operator!= (const IAxis &right) const | 
| virtual bool | contains (double value) const | 
| Returns true if axis contains given point. | |
| Protected Member Functions | |
| void | print (std::ostream &ostr) const | 
| virtual bool | equals (const IAxis &other) const | 
Axis with fixed bin size.
Definition at line 23 of file FixedBinAxis.h.
| FixedBinAxis::FixedBinAxis | ( | const std::string & | name, | 
| size_t | nbins, | ||
| double | start, | ||
| double | end | ||
| ) | 
FixedBinAxis constructor.
| name | Axis name | 
| nbins | number of bins | 
| start | low edge of first bin | 
| end | upper edge of last bin | 
Definition at line 22 of file FixedBinAxis.cpp.