|
||||||||||
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.LocationScaleDistribution
public class LocationScaleDistribution
This class applies a location-scale tranformation to a given distribution. In terms of the corresponding random variable X, the transformation is Y = a + bX
Field Summary |
---|
Fields inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
applet, CONTINUOUS, DISCRETE, MAXMGFXVAL, MAXMGFYVAL, MINMGFXVAL, MIXED, name |
Constructor Summary | |
---|---|
LocationScaleDistribution(Distribution d,
double a,
double b)
This general constructor creates a new location-scale transformation on a given distribuiton with given location and scale parameters |
Method Summary | |
---|---|
double |
getCDF(double x)
This method returns the cumulative distribution function |
double |
getDensity(double x)
This method defines the getDensity function |
double |
getMaxDensity()
This method returns the maximum value of the getDensity function |
double |
getMean()
This mtehod returns the mean |
double |
getQuantile(double p)
This method returns the getQuantile function |
double |
getVariance()
This method returns the variance |
void |
setParameters(Distribution d,
double a,
double b)
This method sets the parameters: the distribution and the location and scale parameters |
double |
simulate()
This method returns a simulated value from the distribution |
Methods inherited from class edu.ucla.stat.SOCR.core.Distribution |
---|
addObserver, betaCDF, comb, factorial, findGFRoot, findRoot, gamma, gammaCDF, getDisplayPane, getDomain, getFailureRate, getGFDerivative, getGFSecondDerivative, getInstance, getLocalHelp, getMean, getMedian, getMGF, getMgfDomain, getName, getOnlineDescription, getPGF, getPGFDomain, getSampleMoment, getSD, getSOCRDistributionFunctors, getSOCRDistributions, getType, getVariance, initialize, inverseCDF, logGamma, paramEstimate, perm, sampleMean, sampleVar, setApplet, setDomain, setDomain, setMGFDomain, setMGFDomain, setMGFParameters, setMGFParameters, setMGFParameters, setMGFParameters, setParameters, setPGFDomain, setPGFDomain, setPGFParameters, setPGFParameters, setPGFParameters, setPGFParameters, update, valueChanged, 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 LocationScaleDistribution(Distribution d, double a, double b)
Method Detail |
---|
public void setParameters(Distribution d, double a, double b)
public double getDensity(double x)
getDensity
in class Distribution
public double getMaxDensity()
getMaxDensity
in class Distribution
public double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public double simulate()
simulate
in class Distribution
public double getCDF(double x)
getCDF
in class Distribution
public double getQuantile(double p)
getQuantile
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |