umontreal.iro.lecuyer.hups
Interface PointSetRandomization
-
- All Known Implementing Classes:
- EmptyRandomization, LMScrambleShift, RandomShift, SMScrambleShift
public interface PointSetRandomizationThis interface is used to randomize aPointSet. One can implement methodrandomizein any way. This method must use an internalRandomStream. This stream can be set in the constructor, but the methodsgetStreamandsetStreammust be implemented.The method
randomizemust be implemented using combinations of the randomization methods from the point set such asaddRandomShift,leftMatrixScramble,stripedMatrixScramble, ...If more than one
PointSetRandomizationis applied to the same point set, the randomizations will concatenate if they are of different types, but only the last of each type will remain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description RandomStreamgetStream()Returns the internalRandomStream.voidrandomize(PointSet p)This method must randomize p.voidsetStream(RandomStream stream)Sets the internalRandomStreamto stream.
-
-
-
Method Detail
-
randomize
void randomize(PointSet p)
This method must randomize p.- Parameters:
p- Point set to randomize
-
setStream
void setStream(RandomStream stream)
Sets the internalRandomStreamto stream.- Parameters:
stream- stream to use in the randomization
-
getStream
RandomStream getStream()
Returns the internalRandomStream.- Returns:
- stream used in the randomization
-
-
DMelt 3.0 © DataMelt by jWork.ORG