com.rapidminer.datatable
Class PairwiseMatrix2DataTableRowWrapper

java.lang.Object
  extended by com.rapidminer.datatable.PairwiseMatrix2DataTableRowWrapper
All Implemented Interfaces:
DataTableRow

public class PairwiseMatrix2DataTableRowWrapper
extends java.lang.Object
implements DataTableRow

This class allows to use the entries of a NumericalMatrix as basis for DataTableRow.

Author:
Ingo Mierswa

Constructor Summary
PairwiseMatrix2DataTableRowWrapper(NumericalMatrix matrix, int firstIndex, int secondIndex)
          Creates a new wrapper.
 
Method Summary
 java.lang.String getId()
          Returns the Id of this table row.
 int getNumberOfValues()
          Returns the total number of values.
 double getValue(int index)
          Returns the i-th value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairwiseMatrix2DataTableRowWrapper

public PairwiseMatrix2DataTableRowWrapper(NumericalMatrix matrix,
                                          int firstIndex,
                                          int secondIndex)
Creates a new wrapper.

Method Detail

getId

public java.lang.String getId()
Description copied from interface: DataTableRow
Returns the Id of this table row.

Specified by:
getId in interface DataTableRow

getValue

public double getValue(int index)
Description copied from interface: DataTableRow
Returns the i-th value.

Specified by:
getValue in interface DataTableRow

getNumberOfValues

public int getNumberOfValues()
Description copied from interface: DataTableRow
Returns the total number of values.

Specified by:
getNumberOfValues in interface DataTableRow


Copyright © 2001-2009 by Rapid-I