|
||||||||||
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
public class Modeler
Field Summary | |
---|---|
static int |
CONTINUOUS_DISTRIBUTION_TYPE
|
static int |
DISCRETE_DISTRIBUTION_TYPE
|
static int |
FOURIER_TYPE
|
static int |
MIXED_DISTRIBUTION_TYPE
|
static int |
WAVELET_TYPE
|
Constructor Summary | |
---|---|
Modeler()
|
Method Summary | |
---|---|
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() |
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()
return the instructions for using this modeler |
java.lang.String |
getKSModelTestString(java.lang.String distributionModelName,
int numberOfQuantiles,
double[] x,
double[] y)
getKSModelTestString computes the KolmogorovSmirnoff test statistics of the match between the 100 quantiles of the data and their corresponding model-distribution quartile counterparts! |
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 |
registerObservers(ObservableWrapper o)
|
double[] |
returnModelX()
returns the fitted model values for X axis |
double[] |
returnModelY()
returns the fitted densisty for corresponding X axis values |
boolean |
useInitButton()
What is this method used for? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONTINUOUS_DISTRIBUTION_TYPE
public static final int DISCRETE_DISTRIBUTION_TYPE
public static final int MIXED_DISTRIBUTION_TYPE
public static final int FOURIER_TYPE
public static final int WAVELET_TYPE
Constructor Detail |
---|
public Modeler()
Method Detail |
---|
public void fitCurve(float[] rawDat, double minx, double maxx, javax.swing.JTextArea resultPanelTextArea, boolean rescaleClicked, boolean scaleUp, boolean initReset)
public double[] generateSamples(int sampleCount)
public java.lang.String getDescription()
public double getGraphUpperLimit()
public double getGraphLowerLimit()
public java.lang.String getInstructions()
public java.lang.String getKSModelTestString(java.lang.String distributionModelName, int numberOfQuantiles, double[] x, double[] y)
distributionModelName
- name of the distribution model-fitnumberOfQuantiles
- number of quantiles to use (e.g., 100)x
- data quantiles arrayy
- model quantiles arraypublic double getLowerLimit()
public int getModelCount()
public int getModelType()
public java.lang.String getResearch()
public double getUpperLimit()
public boolean isContinuous()
public void registerObservers(ObservableWrapper o)
public double[] returnModelX()
public double[] returnModelY()
public boolean useInitButton()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |