Class SuffixTreeKernel.SelectionScalar

    • Constructor Summary

      Constructors 
      Constructor Description
      SelectionScalar​(java.util.BitSet bSet)
      Make a new SelectionScalar that masks in different depths.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getScale​(int depth)
      Retrieve the scaling factor at a given depth
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SelectionScalar

        public SelectionScalar​(java.util.BitSet bSet)
        Make a new SelectionScalar that masks in different depths.
        Parameters:
        bSet - the mask for which depths to allow
    • Method Detail

      • getScale

        public double getScale​(int depth)
        Description copied from interface: SuffixTreeKernel.DepthScaler
        Retrieve the scaling factor at a given depth
        Specified by:
        getScale in interface SuffixTreeKernel.DepthScaler
        Parameters:
        depth - word length
        Returns:
        1.0 or 0.0 depending on whether the bit at depth is set or not