Package schrodinger :: Package application :: Package canvas :: Module fingerprint :: Class CanvasFingerprint
[hide private]
[frames] | no frames]

Class CanvasFingerprint

object --+
         |
        CanvasFingerprint

A class to encapsulate a canvas fingerprint. This is simply a wrapper to the underlying canvas.ChmSparseBitset class. Most operations are delegated to that class.

Instance Methods [hide private]
 
__init__(self, canvasfp)
@param canvasfp is a ChmSparseBitset object.
 
__getattr__(self, aname)
 
getBitset(self)
Return the ChmSparseBitset object
 
countCommonOn(self, fp2)
Calculate the bits set in common between this fingerprint and the fingerprint object fp2
 
countCommonOff(self, fp2)
Calculate the bits not set in common between this fingerprint and the fingerprint object fp2

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, canvasfp)
(Constructor)

 

@param canvasfp is a ChmSparseBitset object. This will have been created by the canvaslibs Fingerprint creation methods

Overrides: object.__init__