bak.pcj.benchmark
Class DataSetOrderedCompact
java.lang.Object
bak.pcj.benchmark.DataSet
bak.pcj.benchmark.DataSetOrderedCompact
- public class DataSetOrderedCompact
- extends DataSet
This class represents a standard data set for benchmarks.
The data set contains three disjoint lists each containing
a range of consecutive int values in order:
[0 - (size-1)]
[(size) - (2*size-1)]
[(2*size) - (3*size-1)]
- Since:
- 1.0
Constructor Summary |
DataSetOrderedCompact(int size)
Creates a new ordered compact data set of a specified
size. |
Method Summary |
protected int[] |
createList(int n,
int size)
Creates the list with the specified number. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSetOrderedCompact
public DataSetOrderedCompact(int size)
- Creates a new ordered compact data set of a specified
size.
- Parameters:
size
- the size of the data set to create.
- Throws:
IllegalArgumentException
- if size is not positive.
createList
protected int[] createList(int n,
int size)
- Description copied from class:
DataSet
- Creates the list with the specified number.
- Specified by:
createList
in class DataSet
- Parameters:
n
- the number of the list to create (0-2).size
- the size of the list to create.
- Returns:
- data list number n with size size.
Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.
Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.
Hosted by SourceForge.net