Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mrd.jelly.random
Class Gamma  view Gamma download Gamma.java

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.mrd.jelly.random.DistributionTagBase
          extended byorg.mrd.jelly.random.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.
 
Fields inherited from class org.mrd.jelly.random.DistributionTagBase
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
Gamma()
           
 
Method Summary
 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 getLambda()
          Getter for property lambda.
 void setAlpha(double alpha)
          Setter for property alpha.
 void setLambda(double lambda)
          Setter for property lambda.
 
Methods inherited from class org.mrd.jelly.random.DistributionTagBase
doBody, doEndTag, doTag, getEngine, getRandomElement, getVar, setEngine, setVar
 
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

alpha

private double alpha
Holds value of property alpha.


lambda

private double lambda
Holds value of property lambda.

Constructor Detail

Gamma

public Gamma()
Method Detail

doStartTag

public void doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput)
                throws org.apache.commons.jelly.MissingAttributeException,
                       org.apache.commons.jelly.JellyTagException
Used by Ant to check if the appropriate attributes have been filled out.

Overrides:
doStartTag in class DistributionTagBase

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.