org.af.jhlir.call
Interface RNumeric<WRAPPED_TYPE>

All Superinterfaces:
RObj<WRAPPED_TYPE>, RVector<WRAPPED_TYPE,double[],Double>, RVectorFactor<WRAPPED_TYPE,double[],Double>
All Known Subinterfaces:
RNumericRef<WRAPPED_REF,RESOLVED_TYPE>

public interface RNumeric<WRAPPED_TYPE>
extends RVector<WRAPPED_TYPE,double[],Double>


Method Summary
 double[] getData()
          Returns an array containing all of the elements in this vector/factor in proper sequence
 List<Double> getDataAsList()
          Returns a list containing all of the elements in this vector/factor in proper sequence
 Double[] getDataAsObjArr()
          Returns an array containing all of the elements in this vector/factor in proper sequence.
 
Methods inherited from interface org.af.jhlir.call.RVectorFactor
get, getLength, getName, getNames, getNamesAsList, isNA
 
Methods inherited from interface org.af.jhlir.call.RObj
asRChar, asRDataFrame, asREnvironment, asRFactor, asRInteger, asRList, asRLogical, asRMatrixDouble, asRNumeric, asS3Obj, getWrapped
 

Method Detail

getData

double[] getData()
Description copied from interface: RVectorFactor
Returns an array containing all of the elements in this vector/factor in proper sequence

Specified by:
getData in interface RVectorFactor<WRAPPED_TYPE,double[],Double>
Returns:
an array containing all of the elements in this vector/factor in proper sequence

getDataAsObjArr

Double[] getDataAsObjArr()
Description copied from interface: RVectorFactor
Returns an array containing all of the elements in this vector/factor in proper sequence. If getData() returns an array of primitives, this methods converts to an array of Java Objects. Note that this takes linear time for long arrays.

Specified by:
getDataAsObjArr in interface RVectorFactor<WRAPPED_TYPE,double[],Double>
Returns:
an array containing all of the elements in this vector/factor in proper sequence

getDataAsList

List<Double> getDataAsList()
Description copied from interface: RVectorFactor
Returns a list containing all of the elements in this vector/factor in proper sequence

Specified by:
getDataAsList in interface RVectorFactor<WRAPPED_TYPE,double[],Double>
Returns:
a list containing all of the elements in this vector/factor in proper sequence