|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.set.Partition
public class Partition
Implements a partition. A partition is used to divide an example set into
different parts of arbitrary sizes without actually make a copy of the data.
Partitions are used by SplittedExampleSets. Partition numbering
starts at 0.
| Constructor Summary | |
|---|---|
Partition(double[] ratio,
int size,
PartitionBuilder builder)
Creates a new partition of a given size consisting of ratio.length sets. |
|
Partition(int[] elements,
int numberOfPartitions)
Creates a partition from the given one. |
|
Partition(int noPartitions,
int size,
PartitionBuilder builder)
Creates a new partition of a given size consisting of noPartitions equally sized sets. |
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clears the selection, i.e. deselects all subsets. |
java.lang.Object |
clone()
|
void |
deselectSubset(int i)
Marks the given subset as deselected. |
boolean |
equals(java.lang.Object o)
|
int |
getNumberOfSubsets()
Returns the number of subsets. |
int |
getSelectionSize()
Returns the number of selected elements. |
int |
getTotalSize()
Returns the total number of examples. |
int |
hashCode()
|
boolean |
hasNext(int index)
Returns true if the last possible index stored in lastElementIndex for all currently selected partitions is not yet reached. |
void |
invertSelection()
|
boolean |
isSelected(int index)
Returns true iff the example with the given index is selected according to the current selection mask. |
int |
mapIndex(int index)
Returns the actual example table index of the i-th example of the currently selected subset. |
void |
selectSubset(int i)
Marks the given subset as selected. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Partition(double[] ratio,
int size,
PartitionBuilder builder)
public Partition(int noPartitions,
int size,
PartitionBuilder builder)
public Partition(int[] elements,
int numberOfPartitions)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean hasNext(int index)
public void clearSelection()
public void invertSelection()
public void selectSubset(int i)
public void deselectSubset(int i)
public int getNumberOfSubsets()
public int getSelectionSize()
public int getTotalSize()
public boolean isSelected(int index)
public int mapIndex(int index)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||