|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.modeler.Modeler edu.ucla.stat.SOCR.modeler.ChiSquareFit_Modeler
public class ChiSquareFit_Modeler
This class Designs a ChiSquare Fit model fitting curve.
Field Summary | |
---|---|
ChiSquareDistribution |
ChiSquareDistr
|
javax.swing.table.TableColumn |
clm2
|
JSci.maths.DoubleVector |
coeffs
|
javax.swing.JTextField |
dfParamField
|
javax.swing.JLabel |
dfParamLabel
|
javax.swing.JCheckBox |
estimateParams
|
float |
kernalVar
|
javax.swing.JTextField |
kernalVarField
|
javax.swing.JCheckBox |
rawCheck
|
static int |
SLICE_SIZE
|
javax.swing.JCheckBox |
userParams
|
Fields inherited from class edu.ucla.stat.SOCR.modeler.Modeler |
---|
CONTINUOUS_DISTRIBUTION_TYPE, DISCRETE_DISTRIBUTION_TYPE, FOURIER_TYPE, MIXED_DISTRIBUTION_TYPE, WAVELET_TYPE |
Constructor Summary | |
---|---|
ChiSquareFit_Modeler()
This method initializes the applet, including the toolbar, scatterplot, and statistics table. |
|
ChiSquareFit_Modeler(javax.swing.JPanel controlpanel)
ChiSquareFit_Modeler Constructor. |
Method Summary | |
---|---|
void |
addParams(javax.swing.JPanel controlpanel)
|
void |
fitCurve(float[] rawDat,
double minx,
double maxx,
javax.swing.JTextArea resultPanelTextArea,
boolean rescaleClicked,
boolean scaleUp,
boolean initReset)
takes data along with x, y limits and fits a pdf to the data range and stores the resulting model fit in data arrays that must be returned by calls to returnModelX() and returnModelY() |
void |
fitCurve(float[] rawDat,
float minx,
float maxx,
double mu0,
double sigma,
boolean plotBlocks,
boolean scaleUp)
fitCurve for ChiSquare Model |
void |
fitCurve(float[] rawDat,
float minx,
float maxx,
javax.swing.JTextArea resultPanelTextArea,
boolean rescaleClicked,
boolean scaleUp,
boolean initReset)
|
double[] |
generateSamples(int sampleCount)
generates samples from the distribution and returns a double[] data type |
java.lang.String |
getDescription()
return the description for this modeler |
double |
getGraphLowerLimit()
|
double |
getGraphUpperLimit()
|
java.lang.String |
getInstructions()
Returns the instructions for using this modeler |
double |
getLowerLimit()
return the allowable x limit values. |
int |
getModelCount()
return the number of models to be plotted. |
int |
getModelType()
returns one if model is of distribution and needs to be rescaled for display. |
java.lang.String |
getResearch()
Returns the references for this modeler |
double |
getUpperLimit()
return the allowaable x limit values. |
boolean |
isContinuous()
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
|
void |
registerObservers(ObservableWrapper o)
|
double[] |
returnModelX()
returns the fitted model values for X axis |
double[] |
returnModelY()
returns the fitted densisty for corresponding X axis values |
void |
setSliceSize(int size)
|
void |
toggleParams(boolean istrue)
|
boolean |
useInitButton()
What is this method used for? |
Methods inherited from class edu.ucla.stat.SOCR.modeler.Modeler |
---|
getKSModelTestString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.swing.JCheckBox estimateParams
public javax.swing.JCheckBox userParams
public ChiSquareDistribution ChiSquareDistr
public float kernalVar
public javax.swing.JTextField dfParamField
public javax.swing.JLabel dfParamLabel
public JSci.maths.DoubleVector coeffs
public javax.swing.table.TableColumn clm2
public javax.swing.JTextField kernalVarField
public javax.swing.JCheckBox rawCheck
public static int SLICE_SIZE
Constructor Detail |
---|
public ChiSquareFit_Modeler()
public ChiSquareFit_Modeler(javax.swing.JPanel controlpanel)
Method Detail |
---|
public void registerObservers(ObservableWrapper o)
registerObservers
in class Modeler
public void addParams(javax.swing.JPanel controlpanel)
public int getModelType()
Modeler
getModelType
in class Modeler
public double getLowerLimit()
Modeler
getLowerLimit
in class Modeler
public double getUpperLimit()
Modeler
getUpperLimit
in class Modeler
public double[] returnModelX()
Modeler
returnModelX
in class Modeler
public double[] returnModelY()
Modeler
returnModelY
in class Modeler
public void toggleParams(boolean istrue)
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public double[] generateSamples(int sampleCount)
Modeler
generateSamples
in class Modeler
public int getModelCount()
Modeler
getModelCount
in class Modeler
public void fitCurve(float[] rawDat, double minx, double maxx, javax.swing.JTextArea resultPanelTextArea, boolean rescaleClicked, boolean scaleUp, boolean initReset)
Modeler
fitCurve
in class Modeler
public void fitCurve(float[] rawDat, float minx, float maxx, javax.swing.JTextArea resultPanelTextArea, boolean rescaleClicked, boolean scaleUp, boolean initReset)
public void fitCurve(float[] rawDat, float minx, float maxx, double mu0, double sigma, boolean plotBlocks, boolean scaleUp)
public java.lang.String getDescription()
Modeler
getDescription
in class Modeler
public java.lang.String getInstructions()
getInstructions
in class Modeler
public java.lang.String getResearch()
getResearch
in class Modeler
public boolean isContinuous()
isContinuous
in class Modeler
public double getGraphLowerLimit()
getGraphLowerLimit
in class Modeler
public double getGraphUpperLimit()
getGraphUpperLimit
in class Modeler
public boolean useInitButton()
Modeler
useInitButton
in class Modeler
public void setSliceSize(int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |