(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Tell whether there is a next value.
Tell whether there is a next value. The stream is infinite, the answer is Yes.
true
Produces a list of n values
Produces a list of n values
the number of values
a list of values
Transforms this stream to the stream of values of type U, by mapping
Transforms this stream to the stream of values of type U, by mapping
the type of result of f
the function that transforms data
another InfiniteStream, with values produced by applying f
the ratio of true values in the stream
Reset this generator, by, say, seeding your rng(s)
Reset this generator, by, say, seeding your rng(s)
the seed
this instance
Random numbers generator used for a variety of purposes; not necessarily the values
Random numbers generator used for a variety of purposes; not necessarily the values
the generator, standard scala.util.Random
A flag that tells whether we should skip the value and build an empty instead It's overridden in ProbabilityOfEmpty trait
A flag that tells whether we should skip the value and build an empty instead It's overridden in ProbabilityOfEmpty trait
true if skip
Infinite stream of values produced by sourceOfData when given the rng
Infinite stream of values produced by sourceOfData when given the rng
a stream of random data
Here we specify the probability of value returned being empty
Here we specify the probability of value returned being empty
the probability; this is the ratio of empty values in putput stream
Generates Binary FeatureType, that is, a stream of Booleans wrapped as FeatureType
the ratio of true values in the stream