Package seamfinding
Class SeamFinderTests.RuntimeExperiments
- java.lang.Object
-
- seamfinding.SeamFinderTests.RuntimeExperiments
-
- Enclosing class:
- SeamFinderTests
@Nested @Disabled class SeamFinderTests.RuntimeExperiments extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_SIZE
Maximum image dimensions in pixels.private static int
NUM_TRIALS
Number of trials to per implementation run.private static int
STEP
Step size increment.
-
Constructor Summary
Constructors Constructor Description RuntimeExperiments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Picture
randomPicture(int width, int height, SplittableRandom spRandom)
Returns a new picture with the given width and height dimensions filled with random colors.(package private) void
randomPictures()
-
-
-
Field Detail
-
MAX_SIZE
private static final int MAX_SIZE
Maximum image dimensions in pixels. Making this smaller means experiments run faster.- See Also:
- Constant Field Values
-
STEP
private static final int STEP
Step size increment. Making this smaller means experiments run slower.- See Also:
- Constant Field Values
-
NUM_TRIALS
private static final int NUM_TRIALS
Number of trials to per implementation run. Making this smaller means experiments run faster.- See Also:
- Constant Field Values
-
-
Method Detail
-
randomPictures
@Test void randomPictures()
-
randomPicture
private Picture randomPicture(int width, int height, SplittableRandom spRandom)
Returns a new picture with the given width and height dimensions filled with random colors.- Parameters:
width
- the horizontal dimension for the picture.height
- the vertical dimension for the picture.spRandom
- theSplittableRandom
instance for generating random colors.- Returns:
- a new picture with the given width and height dimensions filled with random colors.
- See Also:
- Fastest way to create random pixel image
-
-