Class OlafFingerprint

java.lang.Object
be.panako.strategy.olaf.OlafFingerprint

public class OlafFingerprint
extends java.lang.Object
A fingerprint connects three event points in a spectrogram. The points are defined by a time and frequency pair, both encoded with an integer. The frequency is defined by the bin index in the spectrogram. The time is defined as the index of the block processed.
Author:
Joren Six
  • Field Summary

    Fields
    Modifier and Type Field Description
    int f1  
    int f2  
    int f3  
    float m1  
    float m2  
    float m3  
    int t1  
    int t2  
    int t3  
  • Constructor Summary

    Constructors
    Constructor Description
    OlafFingerprint​(int t1, int f1, float m1, int t2, int f2, float m2, int t3, int f3, float m3)  
    OlafFingerprint​(long hash, int t1)  
    OlafFingerprint​(OlafEventPoint e1, OlafEventPoint e2, OlafEventPoint e3)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object other)  
    long hash()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • t1

      public final int t1
    • f1

      public final int f1
    • m1

      public final float m1
    • t2

      public final int t2
    • f2

      public final int f2
    • m2

      public final float m2
    • t3

      public final int t3
    • f3

      public final int f3
    • m3

      public final float m3
  • Constructor Details

    • OlafFingerprint

      public OlafFingerprint​(int t1, int f1, float m1, int t2, int f2, float m2, int t3, int f3, float m3)
    • OlafFingerprint

      public OlafFingerprint​(long hash, int t1)
    • OlafFingerprint

      public OlafFingerprint​(OlafEventPoint e1, OlafEventPoint e2, OlafEventPoint e3)
  • Method Details

    • hash

      public long hash()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object