nz.ac.waikato.mcennis.rat.reusablecores.datavector
Class SparseListMapDataVector

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.reusablecores.datavector.SparseListMapDataVector

public class SparseListMapDataVector
extends java.lang.Object

Class that creates a dual data vector class fromm a duples-list and a map. Note that the list portion has linear random access times making some metrics very slow.


Nested Class Summary
 class SparseListMapDataVector.LeftVector
          Class implementing a list data vector.
 class SparseListMapDataVector.RightVector
          Class representing a map data vector.
 
Constructor Summary
SparseListMapDataVector(java.util.List<Duples<? extends java.lang.Comparable,java.lang.Double>> left, java.util.Map<? extends java.lang.Comparable,java.lang.Double> right, int size)
          Create a pair of data vectors from a list and a map with the given dimensionality.
 
Method Summary
 DataVector left()
          Return the list portion of this object.
 DataVector right()
          Return the map portion of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseListMapDataVector

public SparseListMapDataVector(java.util.List<Duples<? extends java.lang.Comparable,java.lang.Double>> left,
                               java.util.Map<? extends java.lang.Comparable,java.lang.Double> right,
                               int size)
Create a pair of data vectors from a list and a map with the given dimensionality.

Parameters:
left - source list of duples
right - map of objects to doubles
size - dimensionality of the set
Method Detail

left

public DataVector left()
Return the list portion of this object.

Returns:
left vector

right

public DataVector right()
Return the map portion of this object.

Returns:
right vector

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads