1 #ifndef __JTOOLS__JPOLFIT__ 
    2 #define __JTOOLS__JPOLFIT__ 
   24 namespace JPP { 
using namespace JTOOLS; }
 
   37   template<
unsigned int N,      
 
   40            template<
class, 
class> 
class JCollection_t,
 
   44     public JCollection_t<JElement_t, JDistance_t>,
 
   45     public JFunction<typename JElement_t::abscissa_type,
 
   46                      typename JResultType<typename JElement_t::ordinate_type>::result_type>
 
   59     typedef typename collection_type::iterator                                   
iterator;
 
   90       if (this->size() <= 1
u) {
 
   98       if ((p == this->begin() && this->
getDistance(
x, (p++)->getX()) > distance_type::precision) ||
 
   99           (p == this->end()   && this->
getDistance((--p)->getX(), 
x) > distance_type::precision)) {
 
  106       int n = std::min((
int) (
N + 1), (
int) this->size());               
 
  108       for (
int i = 
n/2; i != 0 && p != this->end();   --i, ++p) {}       
 
  109       for (
int i = 
n  ; i != 0 && p != this->begin(); --i, --p) {}
 
  138   template<
unsigned int N,
 
  141            template<
class, 
class> 
class JCollection_t,
 
  142            class JResult_t   = 
typename JElement_t::ordinate_type,
 
  145     public JPolfitFunction<N, M, JElement_t, JCollection_t, JResult_t, JDistance_t>,
 
  146     public JFunction1D<typename JElement_t::abscissa_type, JResult_t> 
 
  159     typedef typename collection_type::iterator                                   
iterator;
 
Auxiliary methods for mathematics. 
 
Exception for a functional operation. 
 
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
 
Definition of zero value for any class. 
 
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects. 
 
Exception for numerical precision error. 
 
#define STATIC_CHECK(expr)
 
Exception for accessing a value in a collection that is outside of its range. 
 
Double_t g1(const Double_t x)
Function.