Package jsl.utilities.random.rng
Interface RNStreamNewInstanceIfc
-
- All Known Subinterfaces:
RNStreamIfc
- All Known Implementing Classes:
AR1CorrelatedRNStream
,RNStreamFactory.RNStream
,RNStreamFactoryDepracated.RNStream
,RNStreamMakerBU.RNStream
public interface RNStreamNewInstanceIfc
The new instance has the same state as the underlying stream. This is a new stream but it has the same state (starting values, etc.)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RNStreamIfc
newInstance()
Returns a copy of the stream with exactly the same stateRNStreamIfc
newInstance(java.lang.String name)
Returns a copy of the stream that has exactly the same state
-
-
-
Method Detail
-
newInstance
RNStreamIfc newInstance()
Returns a copy of the stream with exactly the same state- Returns:
- Returns a copy of the stream with exactly the same state
-
newInstance
RNStreamIfc newInstance(java.lang.String name)
Returns a copy of the stream that has exactly the same state- Parameters:
name
- the name of the new instance- Returns:
- Returns a copy of the stream with exactly the same state
-
-