public class FisherTippettFit_Modeler extends Modeler implements java.awt.event.ItemListener
| Modifier and Type | Field and Description |
|---|---|
javax.swing.table.TableColumn |
clm2 |
JSci.maths.DoubleVector |
coeffs |
javax.swing.JCheckBox |
estimateParams |
FisherTippettDistribution |
FisherTippettDistr |
float |
kernalVar |
javax.swing.JTextField |
kernalVarField |
javax.swing.JTextField |
locationParamField |
javax.swing.JLabel |
locationParamLabel |
javax.swing.JCheckBox |
rawCheck |
javax.swing.JTextField |
scaleParamField |
javax.swing.JLabel |
scaleParamLabel |
static int |
SLICE_SIZE |
javax.swing.JCheckBox |
userParams |
CONTINUOUS_DISTRIBUTION_TYPE, DISCRETE_DISTRIBUTION_TYPE, FOURIER_TYPE, MIXED_DISTRIBUTION_TYPE, WAVELET_TYPE| Constructor and Description |
|---|
FisherTippettFit_Modeler()
This method initializes the applet, including the toolbar,
scatterplot, and statistics table.
|
FisherTippettFit_Modeler(javax.swing.JPanel controlpanel)
FisherTippettFit_Modeler Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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,
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?
|
getKSModelTestStringpublic javax.swing.JCheckBox estimateParams
public javax.swing.JCheckBox userParams
public FisherTippettDistribution FisherTippettDistr
public float kernalVar
public javax.swing.JTextField locationParamField
public javax.swing.JLabel locationParamLabel
public javax.swing.JTextField scaleParamField
public javax.swing.JLabel scaleParamLabel
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
public FisherTippettFit_Modeler()
public FisherTippettFit_Modeler(javax.swing.JPanel controlpanel)
public void registerObservers(ObservableWrapper o)
registerObservers in class Modelerpublic void addParams(javax.swing.JPanel controlpanel)
public int getModelType()
ModelergetModelType in class Modelerpublic double getLowerLimit()
ModelergetLowerLimit in class Modelerpublic double getUpperLimit()
ModelergetUpperLimit in class Modelerpublic double[] returnModelX()
ModelerreturnModelX in class Modelerpublic double[] returnModelY()
ModelerreturnModelY in class Modelerpublic void toggleParams(boolean istrue)
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListenerpublic double[] generateSamples(int sampleCount)
ModelergenerateSamples in class Modelerpublic int getModelCount()
ModelergetModelCount in class Modelerpublic void fitCurve(float[] rawDat,
double minx,
double maxx,
javax.swing.JTextArea resultPanelTextArea,
boolean rescaleClicked,
boolean scaleUp,
boolean initReset)
Modelerpublic void fitCurve(float[] rawDat,
float minx,
float maxx,
javax.swing.JTextArea resultPanelTextArea,
boolean rescaleClicked,
boolean scaleUp,
boolean initReset)
public java.lang.String getDescription()
ModelergetDescription in class Modelerpublic java.lang.String getInstructions()
getInstructions in class Modelerpublic java.lang.String getResearch()
getResearch in class Modelerpublic boolean isContinuous()
isContinuous in class Modelerpublic double getGraphLowerLimit()
getGraphLowerLimit in class Modelerpublic double getGraphUpperLimit()
getGraphUpperLimit in class Modelerpublic boolean useInitButton()
ModeleruseInitButton in class Modelerpublic void setSliceSize(int size)