public class SignatureFingerprinter extends AbstractFingerprinter implements IFingerprinter
AtomSignature
-based fingerprint.Constructor and Description |
---|
SignatureFingerprinter()
Initialize the fingerprinter with a default signature depth of 1.
|
SignatureFingerprinter(int depth)
Initialize the fingerprinter with a certain signature depth.
|
Modifier and Type | Method and Description |
---|---|
IBitFingerprint |
getBitFingerprint(IAtomContainer atomContainer)
Returns the bit fingerprint for the given
IAtomContainer . |
ICountFingerprint |
getCountFingerprint(IAtomContainer container)
Returns the count fingerprint for the given
IAtomContainer . |
protected List<Map.Entry<String,String>> |
getParameters()
Base classes should override this method to report the parameters they
are configured with.
|
Map<String,Integer> |
getRawFingerprint(IAtomContainer atomContainer)
Returns the raw representation of the fingerprint for the given IAtomContainer.
|
int |
getSize()
Returns the size (or length) of the fingerprint.
|
getFingerprint, getVersionDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFingerprint, getVersionDescription
public SignatureFingerprinter()
public SignatureFingerprinter(int depth)
depth
- The depth of the signatures to calculate.protected List<Map.Entry<String,String>> getParameters()
AbstractFingerprinter
getParameters
in class AbstractFingerprinter
public IBitFingerprint getBitFingerprint(IAtomContainer atomContainer) throws CDKException
IFingerprinter
IAtomContainer
.getBitFingerprint
in interface IFingerprinter
atomContainer
- IAtomContainer
for which the fingerprint should be calculated.CDKException
- may be thrown if there is an error during aromaticity detection
or (for key based fingerprints) if there is a SMARTS parsing errorpublic Map<String,Integer> getRawFingerprint(IAtomContainer atomContainer) throws CDKException
IFingerprinter
getRawFingerprint
in interface IFingerprinter
atomContainer
- IAtomContainer for which the fingerprint should be calculated.CDKException
public int getSize()
IFingerprinter
getSize
in interface IFingerprinter
public ICountFingerprint getCountFingerprint(IAtomContainer container) throws CDKException
IFingerprinter
IAtomContainer
.getCountFingerprint
in interface IFingerprinter
container
- IAtomContainer
for which the fingerprint should be calculated.CDKException
- if there is an error during aromaticity detection
or (for key based fingerprints) if there is a SMARTS parsing error.Copyright © 2021. All rights reserved.