com.rapidminer.datatable
Class PairwiseMatrix2DataTableRowIterator

java.lang.Object
  extended by com.rapidminer.datatable.PairwiseMatrix2DataTableRowIterator
All Implemented Interfaces:
java.util.Iterator<DataTableRow>

public class PairwiseMatrix2DataTableRowIterator
extends java.lang.Object
implements java.util.Iterator<DataTableRow>

This iterator iterates over examples of a numerical matrix and creates CorrelationMatrixRow2DataTableRowWrapper objects. If matrix is symetrical, it will iterate only over the pairs of the lower left triangle of the matrix, sparing the diagonal. Otherwise it will return all pairs.

Author:
Ingo Mierswa, Sebastian Land

Constructor Summary
PairwiseMatrix2DataTableRowIterator(NumericalMatrix matrix)
          Creates a new DataTable iterator backed up by examples.
 
Method Summary
 boolean hasNext()
           
 DataTableRow next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairwiseMatrix2DataTableRowIterator

public PairwiseMatrix2DataTableRowIterator(NumericalMatrix matrix)
Creates a new DataTable iterator backed up by examples. If the idAttribute is null the DataTableRows will not be able to deliver an Id.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<DataTableRow>

next

public DataTableRow next()
Specified by:
next in interface java.util.Iterator<DataTableRow>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<DataTableRow>


Copyright © 2001-2009 by Rapid-I