
public class IntegerVector extends AbstractNumberVector<Integer>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | IntegerVector.FactoryFactory for integer vectors. | 
| static class  | IntegerVector.ShortSerializerSerialization class for dense integer vectors with up to
  Short.MAX_VALUEdimensions, by using a short for storing the
 dimensionality. | 
| static class  | IntegerVector.SmallSerializerSerialization class for dense integer vectors with up to 127 dimensions, by
 using a byte for storing the dimensionality. | 
| static class  | IntegerVector.VariableSerializerSerialization class for variable dimensionality by using VarInt encoding. | 
| Modifier and Type | Field and Description | 
|---|---|
| static ByteBufferSerializer<IntegerVector> | BYTE_SERIALIZERSerializer for up to 127 dimensions. | 
| static ByteBufferSerializer<IntegerVector> | SHORT_SERIALIZERSerializer for up to 2^15-1 dimensions. | 
| static IntegerVector.Factory | STATICStatic instance (object factory). | 
| private int[] | valuesKeeps the values of the real vector. | 
| static ByteBufferSerializer<IntegerVector> | VARIABLE_SERIALIZERSerializer using varint encoding. | 
ATTRIBUTE_SEPARATOR| Modifier | Constructor and Description | 
|---|---|
|   | IntegerVector(int[] values)Provides an IntegerVector consisting of the given integer values. | 
| private  | IntegerVector(int[] values,
             boolean nocopy)Private constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | doubleValue(int dimension)Returns the value in the specified dimension as double. | 
| Vector | getColumnVector()Returns a Vector representing in one column and
  getDimensionality()rows the values of this NumberVector of V. | 
| int | getDimensionality()The dimensionality of the vector space where of this FeatureVector of V is
 an element. | 
| Integer | getValue(int dimension)Deprecated.  | 
| int[] | getValues()Get a copy of the raw int[] array. | 
| int | intValue(int dimension)Returns the value in the specified dimension as int. | 
| long | longValue(int dimension)Returns the value in the specified dimension as long. | 
| String | toString()Returns a String representation of the FeatureVector of V as a line that is
 suitable to be printed in a sequential file. | 
byteValue, floatValue, getMax, getMin, shortValuepublic static final IntegerVector.Factory STATIC
public static final ByteBufferSerializer<IntegerVector> BYTE_SERIALIZER
public static final ByteBufferSerializer<IntegerVector> SHORT_SERIALIZER
public static final ByteBufferSerializer<IntegerVector> VARIABLE_SERIALIZER
private final int[] values
private IntegerVector(int[] values,
             boolean nocopy)
values - Value datanocopy - Flag to use without copying.public IntegerVector(int[] values)
values - the values to be set as values of the IntegerVectorpublic int getDimensionality()
FeatureVector@Deprecated public Integer getValue(int dimension)
dimension - the selected attribute. Attributes are counted starting
        with 0.IllegalArgumentException - if the specified dimension is out of range
         of the possible attributes
 
         public double doubleValue(int dimension)
NumberVectorgetValue(dim).doubleValue(), but usually this is much more
 efficient due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()public long longValue(int dimension)
NumberVectorgetValue(dim).longValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()public int intValue(int dimension)
NumberVectorgetValue(dim).intValue(), but usually this is much more efficient
 due to boxing/unboxing cost.intValue in interface NumberVector<Integer>intValue in class AbstractNumberVector<Integer>dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()public int[] getValues()
public Vector getColumnVector()
NumberVectorgetDimensionality() rows the values of this NumberVector of V.getDimensionality() rows the values of this
         NumberVector of Vpublic String toString()
FeatureVectortoString in interface FeatureVector<Integer>toString in class Object