org.omegahat.Environment.ObjectDataStructures
Class numeric

java.lang.Object
  |
  +--org.omegahat.Environment.ObjectDataStructures.vector
        |
        +--org.omegahat.Environment.ObjectDataStructures.numeric
All Implemented Interfaces:
Addable, AssignableSubset, Divisable, MathOperable, MathOperations, Multiplicable, java.io.Serializable, Subsettable, Subtractable, VariableInt

public class numeric
extends vector

See Also:
Serialized Form

Fields inherited from class org.omegahat.Environment.ObjectDataStructures.vector
_data, NA_PATTERN, NullObject
 
Fields inherited from interface org.omegahat.Environment.DataStructures.MathOperable
DIVIDE, MINUS, MULTIPLY, PLUS
 
Constructor Summary
numeric()
           
numeric(double d)
           
numeric(double[] d)
           
numeric(int length)
          Create a vector with length
numeric(java.lang.Integer length)
          Hack to get around the soft/fuzzy method dispatching that coerces the int to a double in this case!
numeric(numeric src, boolean copy)
           
 
Method Summary
 java.lang.Object convertElement(java.lang.Object el)
           
 java.util.Vector data(double d)
           
 java.util.Vector data(double[] d)
           
 int setData(double[] d)
           
 java.lang.Class targetClass()
          The default class of each element in the list.
static double valueOf(java.lang.String s)
           
 
Methods inherited from class org.omegahat.Environment.ObjectDataStructures.vector
add, add, addElement, addValue, apply, apply, asArray, assignElement, assignSubset, copy, createElement, createElement, createVariable, data, data, data, data, data, divide, divide, divideValue, element, elementMathOp, elementToString, exp, findMethod, getDataFrame, getName, isNA, isNA, length, length, length, mathOperation, mathOperation, mathOperation, metaData, minus, minus, multiply, multiply, multiplyValue, numObservations, plus, plus, read, read, separator, setDataFrame, setName, subset, subtractValue, toString, value, values, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

numeric

public numeric()

numeric

public numeric(java.lang.Integer length)
Hack to get around the soft/fuzzy method dispatching that coerces the int to a double in this case!

numeric

public numeric(int length)
Create a vector with length

numeric

public numeric(double[] d)

numeric

public numeric(double d)

numeric

public numeric(numeric src,
               boolean copy)
Method Detail

targetClass

public java.lang.Class targetClass()
Description copied from class: vector
The default class of each element in the list. Used to ensure type-integrity of the array as well as for creating new elements.
Overrides:
targetClass in class vector

data

public java.util.Vector data(double d)

data

public java.util.Vector data(double[] d)

valueOf

public static double valueOf(java.lang.String s)
                      throws java.io.IOException

setData

public int setData(double[] d)

convertElement

public java.lang.Object convertElement(java.lang.Object el)
Overrides:
convertElement in class vector