public static<T extends Point>List<T>sorted(List<T> input,
int desiredBuckets)
Returns a new List of Point with a downsampled version of the provided input list. The output list will have as many elements as the provided desiredBuckets param.
Notes:
The input list must be sorted
This method doesn't mutate the input list or any of its elements.
Type Parameters:
T - the type of the Point elements in the input list
Parameters:
input - the input list of Point points to downsample
desiredBuckets - the desired number of elements for the downsampled output list
Returns:
the downsampled output list
sorted
public static<T extends Point>List<T>sorted(List<T> input,
int inputSize,
int desiredBuckets)
Returns a new List of Point with a downsampled version of the provided input list. The output list will have as many elements as the provided desiredBuckets param.
Notes:
The input list must be sorted
This method doesn't mutate the input list or any of its elements.
Type Parameters:
T - the type of the Point elements in the input list
Parameters:
input - the input list of Point points to downsample
inputSize - the size of the input list
desiredBuckets - the desired number of elements for the downsampled output list