A simple 1-D polynomial fit, using GSL routines.
More...
#include <PolynomialFit.h>
|
|
| PolynomialFit () |
| | Default constructor.
|
|
virtual | ~PolynomialFit () |
| | Destructor.
|
|
void | reset () |
| | Clear all current data, results.
|
|
void | set_degree (int n) |
| | Set the degree of the fit.
|
|
int | get_degree () |
| | Get the current degree.
|
|
void | add_data (double x, Estimate< double > y) |
| | Add a data point.
|
|
void | compute () |
| | Compute the fit using current data.
|
|
double | evaluate (double x) |
| | Evaluate the fit solution at the given x.
|
|
double | evaluate_deriv (double x) |
| | Evaluate the fit solution's derivative at the given x.
|
|
double | evaluate_integ (double x0, double x1) |
| | Integrate the fit solution between x0 and x1.
|
|
double | evaluate_moment (double x0, double x1, int n) |
| | Integrate x^n * y(x) over the specified range.
|
|
double | get_rchi2 () |
| | Get the reduced chi2 of the fit.
|
|
Estimate< double > | get_coeff (int n) |
| | Get the nth degree fitted polynomial coeff and error.
|
|
| 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.
|
|
|
bool | check_range (double x) |
| | Check if a requested x val is in the fit range.
|
| 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.
|
|
|
std::vector< double > | x |
| | The x values for the fit.
|
|
std::vector< Estimate< double > > | y |
| | The y values/errors for the fit.
|
|
int | ndeg |
| | Number of polynomial degrees (1=linear, 2=quadratic, etc)
|
|
double | x_avg |
| | Avg x value.
|
|
double | chi2 |
| | The fit chi2.
|
|
bool | calcd |
| | Has the fit been calculated?
|
|
std::vector< Estimate< double > > | coeffs |
| | The fitted coeffs.
|
|
|
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.
|
A simple 1-D polynomial fit, using GSL routines.
The documentation for this class was generated from the following files: