jhplot
Class HFit
- java.lang.Object
-
- jhplot.HFit
-
public class HFit extends java.lang.Object
Main class for fit data or histograms.
-
-
Constructor Summary
Constructors Constructor and Description HFit()
Show an empty fit frame.HFit(HPlot c1, H1D h1)
Show a fit frame for a selected histogram.HFit(HPlot c1, P1D p1)
Show a fit frame for a selected histogram.HFit(HPlot hplot, java.lang.String hplot_name)
Show an empty fit frame and pass HPlot object.HFit(HPlot hplot, java.lang.String shplot, java.lang.Object ph, java.lang.String sph)
Show a fit frame for a selected histogram.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addFunc(java.lang.String name, java.lang.String tooltip, java.lang.String definition, java.lang.String param)
Add a user 1D function in form of a string.void
doc()
Show online documentation.void
load(H1D h1, java.lang.String h1_name)
Load a histogram for a fitvoid
load(P1D p1, java.lang.String p1_name)
Load data for a fit
-
-
-
Constructor Detail
-
HFit
public HFit()
Show an empty fit frame.
-
HFit
public HFit(HPlot hplot, java.lang.String hplot_name)
Show an empty fit frame and pass HPlot object.- Parameters:
hplot
- HPlot canvas where fit results are plottedhplot_name
- name of this canvas
-
HFit
public HFit(HPlot c1, H1D h1)
Show a fit frame for a selected histogram. For code generation, it assumes c1 and p1 names.- Parameters:
c1
- HPlot canvas where fit results are plottedh1
- input H1D histogram
-
HFit
public HFit(HPlot c1, P1D p1)
Show a fit frame for a selected histogram. For code generation, it assumes c1 and p1 names.- Parameters:
c1
- HPlot canvas where fit results are plottedp1
- input P1D data
-
HFit
public HFit(HPlot hplot, java.lang.String shplot, java.lang.Object ph, java.lang.String sph)
Show a fit frame for a selected histogram. This is the most convinient method, as the user pass only strings, and a reflection mechanism will try to detect the object. This is important if the user want to generate source code automatically.- Parameters:
hplot
- HPlot canvas where fit results are plottedshplot
- String representation of hplot HPlot canvas where fit results are plottedph
- input P1D or H1D objectsph
- String representation of P1D or H1D object
-
-
Method Detail
-
addFunc
public void addFunc(java.lang.String name, java.lang.String tooltip, java.lang.String definition, java.lang.String param)
Add a user 1D function in form of a string. Use the standard JAIDA string to define the function. Since the function is 1D, use x[0] instead of x, and define the parameters as "a,b,c".- Parameters:
name
- Short nametooltip
- Tool tip to be showndefinition
- representing the user function using JAIDAparam
- representing parameter names (use comma to separate)
-
load
public void load(H1D h1, java.lang.String h1_name)
Load a histogram for a fit- Parameters:
h1
- input H1D histogramh1_name
- name of this object in the code
-
load
public void load(P1D p1, java.lang.String p1_name)
Load data for a fit- Parameters:
p1
- input p1D datap1_name
- name of this object in the code
-
doc
public void doc()
Show online documentation.
-
-
DMelt 3.0 © DataMelt by jWork.ORG