Class HarmonicData#

Inheritance Relationships#

Base Type#

Class Documentation#

class HarmonicData : public OrbitUtils::CppPyWrapper#

Public Functions

HarmonicData(int order_in, Function *inFunc)#

Constructor of HarmonicData with order and Function with data.

HarmonicData(HarmonicData *harmonicData)#

Copy Constructor of HarmonicData.

virtual ~HarmonicData()#

Destructor of HarmonicData.

void setOrder(int order_in)#

Sets order of the harmonic fit A0,A1,A2,..,An where order = 2*n+1.

int getOrder()#

Returns order of the harmonic fit A0,A1,A2,..,An where order = 2*n+1.

void setDataFunction(Function *inFunc)#

Sets the new initial data for fiiting as new Function.

void setParam(int index, double val)#

Sets A or phase parameter in param_arr = [A0,A1,phase1,A2,phase2, …].

double getParam(int index)#

Returns A or phase parameter from param_arr = [A0,A1,phase1,A2,phase2, …].

int dataSize()#

Returns the number of points in the Y(x) input scan data.

double valueY(int indexX)#

Returns the Y value for data point with the indexX in the input scan data.

double valueErr(int indexX)#

Returns the error of Y value for data point with the indexX in the input scan data.

double valueX(int indexX)#

Returns the X value for data point with the indexX in the input scan data.

double fitValueY(double x)#

Returns the Y value of the harmonic fit.

void clean()#

Sets all parameter in param_arr = [A0,A1,phase1,A2,phase2, …] to zero.

double sumDiff2()#

Returns the sum of square of difference between data and fit.

Function *getDataFunction()#

Returns the Function with initial data points.