Class DoubleGenerator
java.lang.Object
io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator<T,T>
io.deephaven.engine.testutil.generator.AbstractGenerator<Double>
io.deephaven.engine.testutil.generator.DoubleGenerator
- All Implemented Interfaces:
TestDataGenerator<Double,Double>
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleGenerator(double from, double to) DoubleGenerator(double from, double to, double nullFraction) DoubleGenerator(double from, double to, double nullFraction, double nanFraction) DoubleGenerator(double from, double to, double nullFraction, double nanFraction, double negInfFraction, double posInfFraction) -
Method Summary
Modifier and TypeMethodDescriptiongetType()populateChunk(ReadOnlyIndex toAdd, Random random) Create a chunk for the given index using random for any desired entropy.Methods inherited from class io.deephaven.engine.testutil.generator.AbstractGenerator
getColumnTypeMethods inherited from class io.deephaven.engine.testutil.generator.AbstractReinterpretedGenerator
onRemove, shift
-
Constructor Details
-
DoubleGenerator
public DoubleGenerator() -
DoubleGenerator
public DoubleGenerator(double from, double to) -
DoubleGenerator
public DoubleGenerator(double from, double to, double nullFraction) -
DoubleGenerator
public DoubleGenerator(double from, double to, double nullFraction, double nanFraction) -
DoubleGenerator
public DoubleGenerator(double from, double to, double nullFraction, double nanFraction, double negInfFraction, double posInfFraction)
-
-
Method Details
-
nextValue
-
populateChunk
Description copied from interface:TestDataGeneratorCreate a chunk for the given index using random for any desired entropy.- Specified by:
populateChunkin interfaceTestDataGenerator<Double,Double> - Overrides:
populateChunkin classAbstractReinterpretedGenerator<Double,Double> - Parameters:
toAdd- the index to add values forrandom- the random number generator used for this test- Returns:
- a chunk of primitives or boxed objects of type U
-
getType
- Returns:
- the type of the chunk that we populate
-