Package slice.studio
Class Slices
java.lang.Object
slice.studio.Slices
- Author:
- __STUDENT_NAME__, Finn Voichick, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IndexedRange>createNSlices(byte[] data, int numSlices)static List<IndexedRange>createNSlices(char[] data, int numSlices)static List<IndexedRange>createNSlices(double[] data, int numSlices)static List<IndexedRange>createNSlices(float[] data, int numSlices)static List<IndexedRange>createNSlices(int[] data, int numSlices)static List<IndexedRange>createNSlices(int minInclusive, int maxExclusive, int numSlices)Should create a list ofIndexedRangeobjects of length numSlices.static List<IndexedRange>createNSlices(long[] data, int numSlices)static List<IndexedRange>createNSlices(short[] data, int numSlices)static <C> List<IndexedRange>createNSlices(C[] data, int numSlices)
-
Constructor Details
-
Slices
public Slices()
-
-
Method Details
-
createNSlices
Should create a list ofIndexedRangeobjects of length numSlices. Each slice in the returned result should be allocated a balanced amount of the range. Any remaining data should be distributed one each to the front slices.- Parameters:
minInclusive- minimum (inclusive) of the range to slicemaxExclusive- maximum (exclusive) of the range to slicenumSlices- the number of slices to divide [minInclusive, maxExclusive) into- Returns:
- the created list of slices
-
createNSlices
-
createNSlices
-
createNSlices
-
createNSlices
-
createNSlices
-
createNSlices
-
createNSlices
-
createNSlices
-