de.lmu.ifi.dbs.elki.result
Class RangeSelection

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.DBIDSelection
      extended by de.lmu.ifi.dbs.elki.result.RangeSelection

public class RangeSelection
extends DBIDSelection

Class representing selected Database-IDs and/or a selection range.


Field Summary
private  DoubleDoublePair[] ranges
          Selection range
 
Constructor Summary
RangeSelection(DBIDs selectedIds)
          Constructor.
RangeSelection(DBIDs selection, DoubleDoublePair[] ranges)
          Constructor.
 
Method Summary
 DoubleDoublePair getRange(int dim)
          Get a single selection range.
 DoubleDoublePair[] getRanges()
          Get the selection range.
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.DBIDSelection
getSelectedIds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ranges

private DoubleDoublePair[] ranges
Selection range

Constructor Detail

RangeSelection

public RangeSelection(DBIDs selectedIds)
Constructor.

Parameters:
selectedIds - selected IDs

RangeSelection

public RangeSelection(DBIDs selection,
                      DoubleDoublePair[] ranges)
Constructor.

Parameters:
selection -
ranges -
Method Detail

getRanges

public DoubleDoublePair[] getRanges()
Get the selection range.

Returns:
Selected range. May be null!

getRange

public DoubleDoublePair getRange(int dim)
Get a single selection range.

Returns:
Selected range. May be null!

Release 0.4.0 (2011-09-20_1324)