|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.Distribution edu.ucla.stat.SOCR.distributions.TwoSidedPowerDistribution
public class TwoSidedPowerDistribution
A Java implementation of the (Two-Sided POwer (TSP) Distribution with specified: left, right, mean and power parameters http://www.springerlink.com/content/u71g0104356x70u1/ .
Field Summary |
---|
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
Constructor Summary | |
---|---|
TwoSidedPowerDistribution()
Default constructor: creates a beta distribution with left and right parameters equal to 1 |
|
TwoSidedPowerDistribution(double l,
double r,
double m,
double p)
|
Method Summary | |
---|---|
double |
getDensity(double x)
Define the TSP Density function |
double |
getLeft()
----------------------------------GET-------------------------- |
double |
getMaxDensity()
Compute the maximum getDensity |
double |
getMean()
Compute the mean in closed form |
double |
getMed()
Get the left LIMIT |
double |
getMedian()
This method computes a default approximate median. |
double |
getMode()
Compute the Mode |
java.lang.String |
getOnlineDescription()
This method returns an online description of this distribution. |
double |
getPower()
Get the right LIMIT |
double |
getRight()
Get the right parameter |
double |
getVariance()
Compute the variance in closed form |
void |
initialize()
used for some subclass to initialize before being used |
void |
paramEstimate(double[] distData)
HOW SHOULD THESE PARAMETERS be estimated????? |
void |
setLeft(double l)
Sets the left parameter |
void |
setMed(double m)
Sets the med parameter |
void |
setParameters(double l,
double r,
double m,
double p)
Set the parameters, compute the normalizing constant c, and specifies the all 4 parameters |
void |
setPower(double p)
Sets the power |
void |
setRight(double r)
Sets the right parameter |
void |
valueChanged(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMean, getMGF, getMgfDomain, getName, getPGF, getPGFDomain, getQuantile, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, inverseCDF, logGamma, perm, sampleMean, sampleVar, setApplet, setDomain, setDomain, setMGFDomain, setMGFDomain, setMGFParameters, setMGFParameters, setMGFParameters, setMGFParameters, setParameters, setPGFDomain, setPGFDomain, setPGFParameters, setPGFParameters, setPGFParameters, setPGFParameters, simulate, update, valueChanged |
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable |
---|
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoSidedPowerDistribution(double l, double r, double m, double p)
public TwoSidedPowerDistribution()
Method Detail |
---|
public void initialize()
Distribution
initialize
in class Distribution
public void valueChanged(java.util.Observable o, java.lang.Object arg)
valueChanged
in class Distribution
public void setParameters(double l, double r, double m, double p)
public void setLeft(double l)
public void setRight(double r)
public void setMed(double m)
public void setPower(double p)
public double getLeft()
public double getRight()
public double getMed()
public double getPower()
public double getDensity(double x)
getDensity
in class Distribution
public double getMaxDensity()
getMaxDensity
in class Distribution
public double getMode()
public double getMedian()
Distribution
getMedian
in class Distribution
public double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public void paramEstimate(double[] distData)
paramEstimate
in class Distribution
public java.lang.String getOnlineDescription()
getOnlineDescription
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |