Class QueryResult

java.lang.Object
be.panako.strategy.QueryResult

public class QueryResult
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    double frequencyFactor  
    double percentOfSecondsWithMatches  
    java.lang.String queryPath  
    double queryStart  
    double queryStop  
    java.lang.String refIdentifier  
    java.lang.String refPath  
    double refStart  
    double refStop  
    double score  
    double timeFactor  
  • Constructor Summary

    Constructors
    Constructor Description
    QueryResult​(java.lang.String queryPath, double queryStart, double queryStop, java.lang.String refPath, java.lang.String refIdentifier, double refStart, double refStop, double score, double timeFactor, double frequencyFactor)  
    QueryResult​(java.lang.String queryPath, double queryStart, double queryStop, java.lang.String refPath, java.lang.String refIdentifier, double refStart, double refStop, double score, double timeFactor, double frequencyFactor, double percentOfSecondsWithMatches)  
    QueryResult​(java.lang.String query, double queryStart, double queryStop, java.lang.String refIdentifier, java.lang.String refPath, int score, double refStart, double timeFactor, double frequencyFactor)  
  • Method Summary

    Modifier and Type Method Description
    static QueryResult emptyQueryResult​(java.lang.String query, double queryStart, double queryStop)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • queryPath

      public final java.lang.String queryPath
    • queryStart

      public final double queryStart
    • queryStop

      public final double queryStop
    • refIdentifier

      public final java.lang.String refIdentifier
    • refPath

      public final java.lang.String refPath
    • refStart

      public final double refStart
    • refStop

      public final double refStop
    • score

      public final double score
    • timeFactor

      public final double timeFactor
    • frequencyFactor

      public final double frequencyFactor
    • percentOfSecondsWithMatches

      public final double percentOfSecondsWithMatches
  • Constructor Details

    • QueryResult

      public QueryResult​(java.lang.String queryPath, double queryStart, double queryStop, java.lang.String refPath, java.lang.String refIdentifier, double refStart, double refStop, double score, double timeFactor, double frequencyFactor, double percentOfSecondsWithMatches)
      Parameters:
      queryTimeOffsetStart - The start time offset in the query. The match is found at queryTimeOffsetStart+time.
      queryTimeOffsetStop - The stop time offset of the query.
      identifier - The internal identifier of the matched audio
      description - The meta-data, description of the matched audio
      score - The score for the match
      time - The starting position in the matched audio, in seconds.
      timeFactor - The factor (percentage) of change in time. 110 means 10% speedup compared to the reference. 90 means 10% slower than reference.
      frequencyFactor - The factor (percentage) of change in frequency. 110 means 10% higher frequency compared to the reference. 90 means a 10% lower frequency.
    • QueryResult

      public QueryResult​(java.lang.String query, double queryStart, double queryStop, java.lang.String refIdentifier, java.lang.String refPath, int score, double refStart, double timeFactor, double frequencyFactor)
    • QueryResult

      public QueryResult​(java.lang.String queryPath, double queryStart, double queryStop, java.lang.String refPath, java.lang.String refIdentifier, double refStart, double refStop, double score, double timeFactor, double frequencyFactor)
  • Method Details

    • emptyQueryResult

      public static QueryResult emptyQueryResult​(java.lang.String query, double queryStart, double queryStop)