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


com.chemaxon.descriptors.common
Interface BinaryVectorDescriptor

All Superinterfaces:
Descriptor
All Known Subinterfaces:
Cfp, Ecfp

@Beta
public interface BinaryVectorDescriptor
extends Descriptor

BinaryVectorDescriptor is a Descriptor which holds a fixed length binary fingerprint.

BinaryVectorDescriptor is a bare form descriptor.

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Author:
Gabor Imre

Method Summary
 int calculateDarkness()
          Calculate the darkness of this fingerprint.
 int[] getFP()
          Get integer array representation of this fingerprint.
 long[] getFpAsLongs()
          Get long array representation of this fingerprint.
 
Methods inherited from interface com.chemaxon.descriptors.common.Descriptor
getDescriptorGenerator
 

Method Detail

getFP

int[] getFP()
Get integer array representation of this fingerprint.

The returned array might be the the internal representation array so changing the values is forbidden. Please note that this behavior is not guaranteed, the returned array can be a non cached copy of the represented binary vector generated on every invocation.

Returns:
Integer array representation

getFpAsLongs

long[] getFpAsLongs()
Get long array representation of this fingerprint.

The returned array might be the the internal representation array so changing the values is forbidden. Please note that this behavior is not guaranteed, the returned array can be a non cached copy of the represented binary vector generated on every invocation.

Returns:
Long array representation
Throws:
IllegalStateException - when the underlying fingerprint length is not multiply of 64 bits.

calculateDarkness

int calculateDarkness()
Calculate the darkness of this fingerprint.

Please note that the returned value is not necessarily cached, so the calculation might be executed for multiple consecutive invocations.

Returns:
Count of set bits in the fingerprint

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