org.omegahat.DataStructures.Data
Interface VariableInt

All Known Subinterfaces:
DataVariableInt, FactorInt, NumericVariableInt, OrderedFactorInt, RandomVariableInt
All Known Implementing Classes:
vector, RealVariable

public interface VariableInt


Method Summary
 void add(double value, int which)
           
 void add(java.lang.Object value, int which)
           
 java.lang.String getName()
           
 java.util.Hashtable metaData()
          Intended to be a Property table for storing additional attributes and information about a variable, including entries such as units, nicknames, source, etc.
 long numObservations()
          Return the length or number of records in this VariableInt.
 int read(java.io.Reader reader)
           
 java.lang.String setName(java.lang.String val)
           
 java.lang.Object value(long which)
          Return the whichth observation.
 VariableInt values(int[] i)
          Get a Variable consisting of the specified elements.
 VariableInt values(SelectorInt selector)
          Get a Variable consisting of the specified elements from a selector object.
 

Method Detail

value

public java.lang.Object value(long which)
Return the whichth observation.

values

public VariableInt values(int[] i)
Get a Variable consisting of the specified elements.

values

public VariableInt values(SelectorInt selector)
Get a Variable consisting of the specified elements from a selector object.

add

public void add(java.lang.Object value,
                int which)

add

public void add(double value,
                int which)

numObservations

public long numObservations()
Return the length or number of records in this VariableInt.

read

public int read(java.io.Reader reader)
         throws java.io.IOException

metaData

public java.util.Hashtable metaData()
Intended to be a Property table for storing additional attributes and information about a variable, including entries such as units, nicknames, source, etc.

getName

public java.lang.String getName()

setName

public java.lang.String setName(java.lang.String val)