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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.mrd.jelly.random.DistributionTagBase
          extended byorg.mrd.jelly.random.Normal
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class Normal
extends DistributionTagBase

This is a random number generation class that produces pseudo-random doubles acording to a configured Normal Distribution. It uses the cern.jet.random.Normal Class to support this distribution. The distribution can be configured by supplying a mean and a standard devation. A seed can also be provided.


Field Summary
private  double mean
          Holds value of property mean.
private  double std
          Holds value of property std.
 
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
Normal()
           
 
Method Summary
 void doStartTag(org.apache.commons.jelly.XMLOutput xMLOutput)
          Used by Ant to check if the appropriate attributes have been filled out.
 double getMean()
          Getter for property mean.
 double getStd()
          Getter for property std.
 void setMean(double mean)
          Setter for property mean.
 void setStd(double std)
          Setter for property std.
 
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

mean

private double mean
Holds value of property mean.


std

private double std
Holds value of property std.

Constructor Detail

Normal

public Normal()
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

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.