edu.udo.cs.yale.example
Class ShuffledPartitionBuilder

java.lang.Object
  extended by edu.udo.cs.yale.example.SimplePartitionBuilder
      extended by edu.udo.cs.yale.example.ShuffledPartitionBuilder
All Implemented Interfaces:
PartitionBuilder

public class ShuffledPartitionBuilder
extends SimplePartitionBuilder

Creates a shuffled partition for an example set.

Version:
$Id: ShuffledPartitionBuilder.java,v 2.6 2006/03/21 15:35:39 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.util.Random random
           
 
Constructor Summary
ShuffledPartitionBuilder(int seed)
           
 
Method Summary
 int[] createPartition(double[] ratio, int size)
          Returns a shuffled partition for an example set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

private java.util.Random random
Constructor Detail

ShuffledPartitionBuilder

public ShuffledPartitionBuilder(int seed)
Method Detail

createPartition

public int[] createPartition(double[] ratio,
                             int size)
Returns a shuffled partition for an example set. Uses the partition delivered by the superclass and shuffles the elements.

Specified by:
createPartition in interface PartitionBuilder
Overrides:
createPartition in class SimplePartitionBuilder



Copyright © 2001-2006