Class QueryResult

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

public class QueryResult extends Object
  • Field Details

    • queryPath

      public final String queryPath
    • queryStart

      public final double queryStart
    • queryStop

      public final double queryStop
    • refIdentifier

      public final String refIdentifier
    • refPath

      public final 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(String queryPath, double queryStart, double queryStop, String refPath, String refIdentifier, double refStart, double refStop, double score, double timeFactor, double frequencyFactor, double percentOfSecondsWithMatches)
      Parameters:
      queryStart - The start time offset in the query. The match is found at queryTimeOffsetStart+time.
      queryStop - The stop time offset of the query.
      refIdentifier - The internal identifier of the matched audio
      score - The score for the match
      refStart - 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(String query, double queryStart, double queryStop, String refIdentifier, String refPath, int score, double refStart, double timeFactor, double frequencyFactor)
    • QueryResult

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

    • emptyQueryResult

      public static QueryResult emptyQueryResult(String query, double queryStart, double queryStop)