edu.uiuc.ge.illigal.gale.data
Class CVView

java.lang.Object
  |
  +--edu.uiuc.ge.illigal.gale.data.CVView
All Implemented Interfaces:
OrderedSet

public class CVView
extends java.lang.Object
implements OrderedSet

This class is a view over a certain InstanceMemory.

Since:
0.9alpha
Version:
0.9alpha
Author:
Xavier Llorà <xllora@illigal.ge.uiuc.edu>

Field Summary
protected  int[] iac
          The thresholds for the sample recovery
protected  int iSize
          The number of instances in the view (calculated field)
protected  edu.uiuc.ge.illigal.gale.data.OrderedSet[] osac
          The CVView sets
protected  edu.uiuc.ge.illigal.gale.data.OrderedSet[] osaData
          The folds for cross-validation
 
Constructor Summary
CVView(edu.uiuc.ge.illigal.gale.data.OrderedSet[] osa, int iFold)
          Builds a view over the OrderSet given.
 
Method Summary
 edu.uiuc.ge.illigal.gale.data.Instance getInstance(int iPos)
          Returns the instance for the given position
 int getSize()
          Returns the number of instances in the OrderedSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

osaData

protected edu.uiuc.ge.illigal.gale.data.OrderedSet[] osaData
The folds for cross-validation


iSize

protected int iSize
The number of instances in the view (calculated field)


osac

protected edu.uiuc.ge.illigal.gale.data.OrderedSet[] osac
The CVView sets


iac

protected int[] iac
The thresholds for the sample recovery

Constructor Detail

CVView

public CVView(edu.uiuc.ge.illigal.gale.data.OrderedSet[] osa,
              int iFold)
Builds a view over the OrderSet given.

Parameters:
osa - The folds for cross-validation
iFold - The folder to leave out
Method Detail

getInstance

public edu.uiuc.ge.illigal.gale.data.Instance getInstance(int iPos)
Description copied from interface: OrderedSet
Returns the instance for the given position

Specified by:
getInstance in interface OrderedSet
Parameters:
iPos - Index of the requested instance
Returns:
The value of the requested index

getSize

public int getSize()
Description copied from interface: OrderedSet
Returns the number of instances in the OrderedSet

Specified by:
getSize in interface OrderedSet
Returns:
The number of instances