org.databene.benerator.distribution.function
Class DiscreteFunction

java.lang.Object
  extended by org.databene.benerator.distribution.AbstractWeightFunction
      extended by org.databene.benerator.distribution.function.DiscreteFunction
All Implemented Interfaces:
Distribution, Weight, WeightFunction

public class DiscreteFunction
extends AbstractWeightFunction

Discrete function that is based on an array. On invocation it rounds the function argument to the floor and returns the arrays value of that index.

Created: 20.09.2006 19:04:00

Since:
0.1
Author:
Volker Bergmann

Constructor Summary
DiscreteFunction(double... weights)
           
 
Method Summary
 double value(double param)
           
 
Methods inherited from class org.databene.benerator.distribution.AbstractWeightFunction
applyTo, createNumberGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscreteFunction

public DiscreteFunction(double... weights)
Method Detail

value

public double value(double param)


Copyright © 2013. All Rights Reserved.