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