java.lang.Object
org.apache.commons.jelly.TagSupport
org.mrd.jelly.TagBase
org.mrd.jelly.distribution.DistributionTagBase
org.mrd.jelly.distribution.Gamma
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class Gamma
- extends DistributionTagBase
This is a random number generation class that produces pseudo-random
doubles acording to a configured Lambda Distribution. The Distribution is
supported by the cern.jet.random.Gamma Distribution Class.
The distribution can be configured by two strategies
1.) Alpha and Lambda parameters can be provided for the distribution.
|
Field Summary |
private double |
alpha
Holds value of property alpha. |
private double |
lambda
Holds value of property lambda. |
|
Constructor Summary |
Gamma()
|
| 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 |
alpha
private double alpha
- Holds value of property alpha.
lambda
private double lambda
- Holds value of property lambda.
Gamma
public Gamma()
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.
getAlpha
public double getAlpha()
- Getter for property alpha.
setAlpha
public void setAlpha(double alpha)
- Setter for property alpha.
getLambda
public double getLambda()
- Getter for property lambda.
setLambda
public void setLambda(double lambda)
- Setter for property lambda.