| |
|
| org.databene.benerator.sample.WeightedSampleGenerator
WeightedSampleGenerator | public class WeightedSampleGenerator extends LightweightGenerator (Code) | | Generates values from a weighted or unweighted set of samples.
Created: 07.06.2006 19:04:08
|
WeightedSampleGenerator | public WeightedSampleGenerator()(Code) | | Initializes the generator to an empty sample list
|
WeightedSampleGenerator | public WeightedSampleGenerator(E... values)(Code) | | Initializes the generator to an unweighted sample list
|
WeightedSampleGenerator | public WeightedSampleGenerator(WeightFunction distribution, E... values)(Code) | | Initializes the generator to an unweighted sample list
|
WeightedSampleGenerator | public WeightedSampleGenerator(Collection<E> values)(Code) | | Initializes the generator to an unweighted sample list
|
WeightedSampleGenerator | public WeightedSampleGenerator(WeightFunction distribution, Collection<E> values)(Code) | | Initializes the generator to an unweighted sample list
|
addValue | public void addValue(E value)(Code) | | Adds an unweighted value to the sample list
|
addValues | public void addValues(E... values)(Code) | | Adds unweighted values to the sample list
|
addValues | public void addValues(Collection<E> values)(Code) | | Adds unweighted values to the sample list
|
generate | public static T generate(T... samples)(Code) | | Convenience utility method that chooses one sample out of a list with uniform random distribution
|
generate | public static T generate(List<T> samples)(Code) | | Convenience utility method that chooses one sample out of a list with uniform random distribution
|
getGeneratedType | public Class<E> getGeneratedType()(Code) | | |
setSamples | public void setSamples(WeightedSample<E>... samples)(Code) | | Sets the sample list to the specified weighted values
|
setValues | public void setValues(Collection<E> values)(Code) | | Adds unweighted values to the sample list
|
setValues | public void setValues(E... values)(Code) | | Sets the sample list to the specified unweighted values
|
validate | public void validate()(Code) | | Initializes all attributes
|
|
|
|