12#ifndef ROOT_TGraphBentErrors
13#define ROOT_TGraphBentErrors
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
A TGraphBentErrors is a TGraph with bent, asymmetric error bars.
Double_t * GetEYhigh() const
Double_t * GetEXlow() const
Double_t GetErrorXhigh(Int_t bin) const
Get high error on X[i].
TGraphBentErrors()
TGraphBentErrors default constructor.
Double_t * fEYhigh
[fNpoints] array of Y high errors
virtual ~TGraphBentErrors()
TGraphBentErrors default destructor.
Double_t * fEXlowd
[fNpoints] array of X low displacements
Double_t * GetEXlowd() const
Double_t * fEYlowd
[fNpoints] array of Y low displacements
Double_t GetErrorXlow(Int_t bin) const
Get low error on X[i].
virtual Bool_t CopyPoints(Double_t **arrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy errors from fE***to arrays[***] or to f*** Copy points.
virtual Double_t ** Allocate(Int_t size)
Allocate internal data structures for newsize points.
Bool_t CtorAllocate()
Should be called from ctors after fNpoints has been set.
virtual void Apply(TF1 *f)
Apply a function to all data points .
Double_t * fEXhighd
[fNpoints] array of X high displacements
Double_t * GetEYlow() const
Double_t GetErrorYhigh(Int_t bin) const
Get high error on Y[i].
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void CopyAndRelease(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy and release.
Double_t GetErrorX(Int_t bin) const
It returns the error along X at point i.
virtual void SwapPoints(Int_t pos1, Int_t pos2)
Swap points.
virtual void SetPointError(Double_t exl, Double_t exh, Double_t eyl, Double_t eyh, Double_t exld=0, Double_t exhd=0, Double_t eyld=0, Double_t eyhd=0)
Set ex and ey values for point pointed by the mouse.
Double_t * GetEXhighd() const
Double_t * fEXlow
[fNpoints] array of X low errors
Double_t * fEXhigh
[fNpoints] array of X high errors
Double_t GetErrorY(Int_t bin) const
It returns the error along Y at point i.
virtual void FillZero(Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
Set zero values for point arrays in the range [begin, end]
virtual void Scale(Double_t c1=1., Option_t *option="y")
Multiply the values and errors of a TGraphBentErrors by a constant c1.
virtual Bool_t DoMerge(const TGraph *g)
Protected function to perform the merge operation of a graph with asymmetric errors.
virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
Compute range.
Double_t * GetEYlowd() const
Double_t * fEYlow
[fNpoints] array of Y low errors
Double_t GetErrorYlow(Int_t bin) const
Get low error on Y[i].
Double_t * GetEYhighd() const
Double_t * fEYhighd
[fNpoints] array of Y high displacements
Double_t * GetEXhigh() const
virtual void Print(Option_t *chopt="") const
Print graph and errors values.
A TGraph is an object made of two arrays X and Y with npoints each.
Double_t ** AllocateArrays(Int_t Narrays, Int_t arraySize)
Allocate arrays.