annotate org/vamp_plugins/Feature.java @ 28:f2914a92b553

Docs
author Chris Cannam
date Mon, 19 Nov 2012 15:12:44 +0000
parents 530bf5009ee2
children c9515589be7d
rev   line source
Chris@18 1
Chris@18 2 package org.vamp_plugins;
Chris@18 3
Chris@28 4 /**
Chris@28 5 * Feature contains a single result returned from Plugin.process() or
Chris@28 6 * Plugin.getRemainingFeatures().
Chris@28 7 */
Chris@18 8 public class Feature {
Chris@28 9 /**
Chris@28 10 * True if an output feature has its own timestamp. This is
Chris@28 11 * mandatory if the output has VariableSampleRate, optional if
Chris@28 12 * the output has FixedSampleRate, and unused if the output
Chris@28 13 * has OneSamplePerStep.
Chris@28 14 */
Chris@18 15 public boolean hasTimestamp;
Chris@28 16
Chris@28 17 /**
Chris@28 18 * Timestamp of the output feature. This is mandatory if the
Chris@28 19 * output has VariableSampleRate or if the output has
Chris@28 20 * FixedSampleRate and hasTimestamp is true, and unused
Chris@28 21 * otherwise.
Chris@28 22 */
Chris@18 23 public RealTime timestamp;
Chris@28 24
Chris@28 25 /**
Chris@28 26 * True if an output feature has a specified duration. This
Chris@28 27 * is optional if the output has VariableSampleRate or
Chris@28 28 * FixedSampleRate, and and unused if the output has
Chris@28 29 * OneSamplePerStep.
Chris@28 30 */
Chris@18 31 public boolean hasDuration;
Chris@28 32
Chris@28 33 /**
Chris@28 34 * Duration of the output feature. This is mandatory if the
Chris@28 35 * output has VariableSampleRate or FixedSampleRate and
Chris@28 36 * hasDuration is true, and unused otherwise.
Chris@28 37 */
Chris@18 38 public RealTime duration;
Chris@28 39
Chris@28 40 /**
Chris@28 41 * Results for a single sample of this feature. If the output
Chris@28 42 * hasFixedBinCount, there must be the same number of values
Chris@28 43 * as the output's binCount count.
Chris@28 44 */
Chris@18 45 public float[] values;
Chris@28 46
Chris@28 47 /**
Chris@28 48 * Label for the sample of this feature.
Chris@28 49 */
Chris@18 50 public String label;
Chris@28 51
Chris@18 52 Feature() {
Chris@18 53 hasTimestamp = false; hasDuration = false;
Chris@18 54 }
Chris@18 55 };
Chris@18 56