Package be.panako.strategy
Class QueryResult
java.lang.Object
be.panako.strategy.QueryResult
public class QueryResult
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description doublefrequencyFactordoublepercentOfSecondsWithMatchesjava.lang.StringqueryPathdoublequeryStartdoublequeryStopjava.lang.StringrefIdentifierjava.lang.StringrefPathdoublerefStartdoublerefStopdoublescoredoubletimeFactor -
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 QueryResultemptyQueryResult(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 atqueryTimeOffsetStart+time.queryTimeOffsetStop- The stop time offset of the query.identifier- The internal identifier of the matched audiodescription- The meta-data, description of the matched audioscore- The score for the matchtime- 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)
-