jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.descriptors.vectors.floats
Enum FvParameters.SparseCompression

Object
  extended by Enum<FvParameters.SparseCompression>
      extended by com.chemaxon.descriptors.vectors.floats.FvParameters.SparseCompression
All Implemented Interfaces:
Serializable, Comparable<FvParameters.SparseCompression>
Enclosing class:
FvParameters

public static enum FvParameters.SparseCompression
extends Enum<FvParameters.SparseCompression>

Optimization for sparse vectors.


Enum Constant Summary
NONE
          No optimization for sparse vectors.
ZRLL_BYTES
          Zero run length list of 8bit values; suitable for very sparse vectors.
 
Method Summary
static FvParameters.SparseCompression valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FvParameters.SparseCompression[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final FvParameters.SparseCompression NONE
No optimization for sparse vectors.

Every coordinate is stored using the specified numeric representation.


ZRLL_BYTES

public static final FvParameters.SparseCompression ZRLL_BYTES
Zero run length list of 8bit values; suitable for very sparse vectors.

Store the number of leading zeros, and zeros following each element is stored separately in a list of 8 bit unsigned values. If a zero run is longer than the maximum value of representing type (255 in this case) a zero valued coordinate is stored.

Method Detail

values

public static FvParameters.SparseCompression[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FvParameters.SparseCompression c : FvParameters.SparseCompression.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FvParameters.SparseCompression valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)