|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucla.stat.SOCR.modeler.Modeler
edu.ucla.stat.SOCR.modeler.WaveletFit_Modeler
public class WaveletFit_Modeler
This class Designs a Fourier model fitting curve.
| Nested Class Summary | |
|---|---|
class |
WaveletFit_Modeler.OB
|
| Field Summary | |
|---|---|
javax.swing.table.TableColumn |
clm2
|
JSci.maths.DoubleVector |
coeffs
|
SOCRJComboBox |
combobox
|
javax.swing.JCheckBox |
estimateParams
|
static int |
halfSampleCount
|
static double |
halfSampleCountFloat
|
javax.swing.JTextField |
paramField
|
javax.swing.JLabel |
paramLabel
|
javax.swing.JCheckBox |
rawCheck
|
static int |
sampleCount
|
WaveletLoader |
waveletloader
|
| 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 | |
|---|---|
WaveletFit_Modeler()
|
|
WaveletFit_Modeler(javax.swing.JPanel controlpanel)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addParams(javax.swing.JPanel controlpanel)
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
|
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 |
getAppletInfo()
|
double |
getCDF(double x)
|
java.lang.String |
getDescription()
return the description for this modeler |
double |
getGraphLowerLimit()
|
double |
getGraphUpperLimit()
|
java.lang.String |
getInstructions()
return 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()
return 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 |
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.JTextField paramField
public javax.swing.JLabel paramLabel
public static int sampleCount
public static int halfSampleCount
public static double halfSampleCountFloat
public WaveletLoader waveletloader
public JSci.maths.DoubleVector coeffs
public javax.swing.table.TableColumn clm2
public javax.swing.JCheckBox rawCheck
public SOCRJComboBox combobox
public javax.swing.JCheckBox estimateParams
| Constructor Detail |
|---|
public WaveletFit_Modeler()
public WaveletFit_Modeler(javax.swing.JPanel controlpanel)
| Method Detail |
|---|
public java.lang.String getAppletInfo()
public double getLowerLimit()
Modeler
getLowerLimit in class Modelerpublic double getUpperLimit()
Modeler
getUpperLimit in class Modelerpublic void addParams(javax.swing.JPanel controlpanel)
public void registerObservers(ObservableWrapper o)
registerObservers in class Modelerpublic void toggleParams(boolean istrue)
public int getModelType()
Modeler
getModelType in class Modelerpublic double[] generateSamples(int sampleCount)
Modeler
generateSamples in class Modelerpublic double[] returnModelX()
Modeler
returnModelX in class Modelerpublic double[] returnModelY()
Modeler
returnModelY in class Modelerpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic int getModelCount()
Modeler
getModelCount in class Modelerpublic double getCDF(double x)
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 java.lang.String getDescription()
Modeler
getDescription in class Modelerpublic java.lang.String getInstructions()
getInstructions in class Modelerpublic java.lang.String getResearch()
getResearch in class Modelerpublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
adjustmentValueChanged in interface java.awt.event.AdjustmentListenerpublic boolean isContinuous()
isContinuous in class Modelerpublic double getGraphLowerLimit()
getGraphLowerLimit in class Modelerpublic double getGraphUpperLimit()
getGraphUpperLimit in class Modelerpublic boolean useInitButton()
Modeler
useInitButton in class Modeler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||