Auxiliary class for defining an oscillogram axis.  
 More...
#include <JOscillogram.hh>
 | 
|   | JOscillogramAxis (const int type, const JGrid_t binning) | 
|   | Constructor.  
  | 
|   | 
|   | JOscillogramAxis (const int type, const int N, const double min, const double max) | 
|   | Constructor.  
  | 
|   | 
| virtual int  | getSize () const override | 
|   | Get number of elements.  
  | 
|   | 
| virtual abscissa_type  | getX (int index) const override | 
|   | Get abscissa value.  
  | 
|   | 
| virtual abscissa_type  | getXmin () const override | 
|   | Get minimal abscissa value.  
  | 
|   | 
| virtual abscissa_type  | getXmax () const override | 
|   | Get maximal abscissa value.  
  | 
|   | 
| int  | getIndex (typename JClass< abscissa_type >::argument_type x) const | 
|   | Get index of given abscissa value.  
  | 
|   | 
| template<class JElement_t , class JDistance_t >  | 
| const JGrid &  | operator() (JCollection< JElement_t, JDistance_t > &collection) const | 
|   | Configure collection.  
  | 
|   | 
| bool  | is_equal (const JAbstractCollection &collection) const | 
|   | Test whether abstract collections are equal.  
  | 
|   | 
Auxiliary class for defining an oscillogram axis. 
Definition at line 37 of file JOscillogram.hh.
 
◆ JGrid_t
◆ abscissa_type
template<class JAbscissa_t > 
  
  
      
        
          | JAbstractCollection<JAbscissa_t>::abscissa_type JTOOLS::JGrid< JAbscissa_t >::abscissa_type | 
         
       
   | 
  
inherited   | 
  
 
 
◆ JOscillogramAxis() [1/2]
  
  
      
        
          | JOSCPROB::JOscillogramAxis::JOscillogramAxis  | 
          ( | 
          const int |           type,  | 
         
        
           | 
           | 
          const JGrid_t |           binning ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | type | oscillation variable type  | 
    | binning | oscillation variable binning  | 
  
   
Definition at line 49 of file JOscillogram.hh.
 
 
◆ JOscillogramAxis() [2/2]
  
  
      
        
          | JOSCPROB::JOscillogramAxis::JOscillogramAxis  | 
          ( | 
          const int |           type,  | 
         
        
           | 
           | 
          const int |           N,  | 
         
        
           | 
           | 
          const double |           min,  | 
         
        
           | 
           | 
          const double |           max ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | type | oscillogram variable type  | 
    | N | number of bins  | 
    | min | minimum axis value  | 
    | max | maximum axis value  | 
  
   
Definition at line 64 of file JOscillogram.hh.
 
 
◆ getSize()
template<class JAbscissa_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
◆ getX()
template<class JAbscissa_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
◆ getXmin()
template<class JAbscissa_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
◆ getXmax()
template<class JAbscissa_t > 
  
  | 
      
   | 
  
inlineoverridevirtualinherited   | 
  
 
 
◆ getIndex()
template<class JAbscissa_t > 
 
Get index of given abscissa value. 
- Parameters
 - 
  
  
 
- Returns
 - index 
 
Definition at line 121 of file JGrid.hh.
 
 
◆ operator()()
template<class JAbscissa_t > 
template<class JElement_t , class JDistance_t > 
 
Configure collection. 
- Parameters
 - 
  
  
 
- Returns
 - this grid 
 
Definition at line 134 of file JGrid.hh.
  135    {
  136      collection.configure(*this);
  137 
  138      return *this;
  139    }
 
 
 
◆ is_equal()
template<class JAbscissa_t > 
 
Test whether abstract collections are equal. 
- Parameters
 - 
  
    | collection | abstract collection  | 
  
   
- Returns
 - true if collections are equals; else false 
 
Definition at line 72 of file JAbstractCollection.hh.
   73    {
   74      if (this->
getSize() == collection.getSize()) {
 
   75 
   76        for (
int i = 0; i != this->
getSize(); ++i) {
 
   77 
   78          if (this->
getX(i) != collection.getX(i)) {
 
   79            return false;
   80          }
   81        }
   82 
   83        return true;
   84      }
   85 
   86      return false;
   87    }
 
 
 
◆ type
      
        
          | int JOSCPROB::JOscillogramAxis::type | 
        
      
 
 
◆ size
template<class JAbscissa_t > 
 
 
◆ xmin
template<class JAbscissa_t > 
 
 
◆ xmax
template<class JAbscissa_t > 
 
 
The documentation for this struct was generated from the following file: