A class which encapsulates the Canvas fingerprint similarity tools. 
  This includes recording and implementing the available similarity 
  metrics. Currently the metrics are implemented at the Python level as 
  this demonstrates how the fingerprint manipulations are performed however
  ultimately these will be replaced with wrappers to the underlying 
  Canvaslibs tools which should be more efficient
    |  | 
        
          | __init__(self,
        logger) Initialize the similarity class
 |  |  | 
    |  | 
        
          | debug(self,
        output) Wrapper for debug logging, just to simplify logging
 |  |  | 
    |  | 
        
          | getDescription(self) Returns a string representing a summary of the current similarity 
      settings
 |  |  | 
    |  | 
        
          | setMetric(self,
        metric_name) Set the current metric based on the metric name
 |  |  | 
    |  | 
        
          | getMetric(self) Returns the currently set metric
 |  |  | 
    |  | 
        
          | calculateSimilarity(self,
        fp1,
        fp2) Calculate the similarity between the two fingerprints and return the 
      value.
 |  |  | 
    |  | 
        
          | setAlpha(self,
        alpha) Set the value of Alpha as used in the tversky similarity
 |  |  | 
    |  | 
        
          | setBeta(self,
        beta) Set the value of Alpha as used in the tversky similarity
 |  |  | 
    |  | 
        
          | getAlpha(self) Get the value of Alpha as used in the tversky similarity
 |  |  | 
    |  | 
        
          | getBeta(self) Get the value of Alpha as used in the tversky similarity
 |  |  | 
    |  | 
        
          | getMetricStyle(self) Return a value corresponding to the current metric style.
 |  |  | 
    |  | 
        
          | _getABC(self,
        fp1,
        fp2) Most similarity methods use three quantities calculated from the 
      input fingerprints.
 |  |  | 
    |  | 
        
          | simHamming(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simModifiedTanimoto(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simPatternDifference(self,
        fp1,
        fp2) |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | simVariance(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simEuclidean(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simTanimoto(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simTversky(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simSoergel(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simMcConnaughey(self,
        fp1,
        fp2) |  |  | 
    |  |  | 
    |  | 
        
          | simCosine(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simSimpson(self,
        fp1,
        fp2) |  |  | 
    |  |  | 
    |  | 
        
          | simKulczynski(self,
        fp1,
        fp2) |  |  | 
    |  |  | 
    |  | 
        
          | simHamann(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simMatching(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simPearson(self,
        fp1,
        fp2) |  |  | 
    |  | 
        
          | simRogersTanimoto(self,
        fp1,
        fp2) |  |  | 
    |  |  | 
    |  |  | 
    |  | 
        
          | simMinMax(self,
        fp1,
        fp2) |  |  | 
  
    | Inherited from object:__delattr__,__format__,__getattribute__,__hash__,__new__,__reduce__,__reduce_ex__,__repr__,__setattr__,__sizeof__,__str__,__subclasshook__ |