|
|||||||||
| Home >> All >> org >> mrd >> jelly >> [ distribution overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mrd.jelly.distribution
Class Beta

java.lang.Objectorg.apache.commons.jelly.TagSupport
org.mrd.jelly.TagBase
org.mrd.jelly.distribution.DistributionTagBase
org.mrd.jelly.distribution.Beta
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class Beta
- extends DistributionTagBase
This is a random number generation class that produces pseudo-random doubles acording to a configured Beta Distribution. The Distribution is supported by the cern.jet.random.Beta Distribution Class. The distribution can be configured by two strategies 1.) Alpha and Beta parameters can be provided for the distribution. 2.) The mean and standard devation can be provided to configure the distribution. With this strategy alpha and beta are estimated through the method of matching moments to be alpha = mean{[mean(1-mean)/s^2] - 1} beta = (1-mean) mean{[mean(1-mean)/s^2] - 1}
| Field Summary | |
private double |
alpha
Holds value of property alpha. |
private double |
beta
Holds value of property beta. |
private double |
mean
Holds value of property mean. |
private boolean |
setByMean
|
private double |
std
Holds value of property std. |
| Fields inherited from class org.mrd.jelly.distribution.DistributionTagBase |
|
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
Beta()
|
|
| Method Summary | |
void |
doEndTag(org.apache.commons.jelly.XMLOutput xMLOutput)
Simply put, it is where the execution of the tag occurs. |
void |
doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput)
Used by Ant to check if the appropriate attributes have been filled out. |
double |
getAlpha()
Getter for property alpha. |
double |
getBeta()
Getter for property beta. |
double |
getMean()
Getter for property mean. |
double |
getStd()
Getter for property std. |
void |
setAlpha(double alpha)
Setter for property alpha. |
void |
setBeta(double beta)
Setter for property beta. |
void |
setMean(double mean)
Setter for property mean. |
void |
setStd(double std)
Setter for property std. |
| Methods inherited from class org.mrd.jelly.distribution.DistributionTagBase |
getEngine, getRandomElement, getVar, setEngine, setVar |
| Methods inherited from class org.mrd.jelly.TagBase |
doBody, doTag |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
mean
private double mean
- Holds value of property mean.
std
private double std
- Holds value of property std.
alpha
private double alpha
- Holds value of property alpha.
beta
private double beta
- Holds value of property beta.
setByMean
private boolean setByMean
| Constructor Detail |
Beta
public Beta()
| Method Detail |
doStartTag
public void doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput) throws java.lang.Exception
- Used by Ant to check if the appropriate attributes have been filled out.
doEndTag
public void doEndTag(org.apache.commons.jelly.XMLOutput xMLOutput) throws java.lang.Exception
- Simply put, it is where the execution of the tag occurs.
getMean
public double getMean()
- Getter for property mean.
setMean
public void setMean(double mean)
- Setter for property mean.
getStd
public double getStd()
- Getter for property std.
setStd
public void setStd(double std)
- Setter for property std.
getAlpha
public double getAlpha()
- Getter for property alpha.
setAlpha
public void setAlpha(double alpha)
- Setter for property alpha.
getBeta
public double getBeta()
- Getter for property beta.
setBeta
public void setBeta(double beta)
- Setter for property beta.
|
|||||||||
| Home >> All >> org >> mrd >> jelly >> [ distribution overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC