Credits 
hosted by 
 
 
Statistics of two-bit quantization and artifact correction parameters.  
 More... 
#include <JenetAnderson98.h >
JenetAnderson98  ()  Default constructor.  void  set_Phi  (double Phi)  Set the fraction of samples in the low voltage state.   void  set_sigma_n  (double sigma_n)  Set the normalized, undigitized power.   get_hi  () const  Get the optimal high voltage output levels, JA98 Eq.40.  get_lo  () const  Get the optimal low voltage output levels, JA98 Eq.41.  get_A  () const  Get the slope of digitized vs undigitized correlation, JA98 Eq.43.  void  set_threshold  (double t=get_optimal_spacing (2))  Set the sampling threshold.   get_threshold  () const  Get the sampling threshold.  get_mean_Phi  () const  Get the expectation value of Phi, JA98 Eq.A2.  void  set_mean_Phi  (double mean_Phi)  Set the expectation value of Phi.   get_var_Phi  () const  Get the variance of Phi.  void  get_prob_Phi  (unsigned L, std::vector< float > &prob_Phi)  Get the theoretical probability distribution of Phi, JA98 Eq.A6.   A4  (double Phi)  Given Phi, return the digitized power.  double  invert_A4  (double sigma_hat)  Given the digitized power, return Phi.   A14  (double mean_Phi)  Given <Phi>, return the digitized power.  double  invert_A14  (double sigma_hat)  Given the digitized power, return <Phi>   set_measured_prob_Phi  (const Probability  *data)  Set the measured probability distribution of Phi.  Probability  * get_measured_prob_Phi  () const  Set the measured probability distribution of Phi.  
  Able  ()  Default constructor.  
  Able  (const Able  &)  Copy constructor.  
Able  &  operator=  (const Able  &)  Assignment operator.  
virtual  ~Able  ()  Destructor.  
unsigned  get_reference_count  () const  Returns the number of references there are to this.  
  HeapTracked  ()  Default constructor.  
  HeapTracked  (const HeapTracked  &)  Copy constructor.  
HeapTracked  &  operator=  (const HeapTracked  &)  Assignment operator.  
virtual  ~HeapTracked  ()  Destructor.  
bool  __is_on_heap  () const  Return true if this instance is found in heap addresses.  
static double  get_optimal_spacing  (unsigned bits)  Table 3 - Optimum Input Threshold Spacing for a Uniform Digitizer.   
static size_t  get_instance_count  ()  Returns the current number instances in existence.  
static void *  operator new  (size_t size, void *ptr=0)  Records the addresses of new instances allocated on the heap.  
static void  operator delete  (void *location, void *ptr)  Placement delete overload to match the placement new overload.  
static void  operator delete  (void *location)  Regular delete overload.  
static size_t  get_heap_queue_size  ()  Return the number of heap addresses awaiting processing.  
void  set_alpha  (double alpha, double Phi)  Set the inverse width of the gaussian, sort of.   Handle  * __reference  (bool active) const  Add the address of a reference to this object.   void  __dereference  (bool auto_delete=true) const  Remove the address of a reference to this object.   
threshold   The sampling threshold.  Reference::To < const Probability  > measured   The interface to a measured probability distribution of Phi.  lo hi A mean_Phi var_Phi 
Statistics of two-bit quantization and artifact correction parameters. 
Given either the fraction of digitized samples in the low voltage state, 
the output levels that minimize signal distortion (dynamic level setting), and  
the fractional quantization noise (scattered power correction).
Parameters 
  
    Phi fraction of low voltage state samples, or  sigma_n normalized power 
   
Return values 
  
    lo the optimal low voltage output level  hi the optimal hi voltage output level  A the fractional quantization noise 
   
Furthermore, given the sampling threshold, 
 
 
◆  
  
  
      
        
          double JenetAnderson98::get_optimal_spacing  
          ( 
          unsigned           bits ) 
           
      
   
  
static  
   
 
Table 3 - Optimum Input Threshold Spacing for a Uniform Digitizer. 
Beyond 8 bits per sample, optimal spacing is extrapolated using an exponential. 
Referenced by JenetAnderson98() .
 
 
◆  
      
        
          void JenetAnderson98::get_prob_Phi  
          ( 
          unsigned           L  
        
          std::vector< float > &           prob_Phi  
      
 
Get the theoretical probability distribution of Phi, JA98 Eq.A6. 
Parameters 
  
    L is the number of points used to measure Phi  
   
Return values 
  
    prob_Phi[i] will contain the probability of Phi = i/L  
   
References get_mean_Phi() .
 
 
◆  
      
        
          double JenetAnderson98::invert_A14  
          ( 
          double           sigma_hat ) 
           
      
 
Given the digitized power, return <Phi> 
Uses the van Wijngaarden-Dekker-Brent method to invert Eq.A14 of JA98 
References A14() .
 
 
◆  
      
        
          double JenetAnderson98::invert_A4  
          ( 
          double           sigma_hat ) 
           
      
 
Given the digitized power, return Phi. 
Uses the van Wijngaarden-Dekker-Brent method to invert Eq.A4 of JA98 
References A4() .
 
 
◆  
  
  
      
        
          void JenetAnderson98::set_alpha  
          ( 
          double           alpha  
        
          double           Phi  
      
   
  
protected  
   
 
Set the inverse width of the gaussian, sort of. 
Referenced by set_Phi() , and set_sigma_n() .
 
 
◆  
      
        
          void JenetAnderson98::set_mean_Phi  
          ( 
          double           Phi ) 
           
      
 
Set the expectation value of Phi. 
Given the mean fraction of samples that lay within the thresholds, -t and +t, this method computes the threshold, where threshold = t/sigma. 
References threshold .
Referenced by A14() .
 
 
◆  
      
        
          void JenetAnderson98::set_Phi  
          ( 
          double           Phi ) 
           
      
 
Set the fraction of samples in the low voltage state. 
This method inverts Eq.45 of JA98.
Phi is the left-hand side of Eq.44, the fraction of samples between x2 and x4; alpha is the inverse error function of Phi. 
References set_alpha() .
Referenced by A4() , and JenetAnderson98::EquationA5::set_nsamp() .
 
 
◆  
      
        
          void JenetAnderson98::set_sigma_n  
          ( 
          double           sigma_n ) 
           
      
 
Set the normalized, undigitized power. 
References set_alpha() , and threshold .
 
 
◆  The documentation for this class was generated from the following files:
 
Generated using doxygen  1.14.0