Package org.vamp_plugins
Class Feature
- java.lang.Object
-
- org.vamp_plugins.Feature
-
public class Feature extends java.lang.Object
Feature contains a single result returned from Plugin.process() or Plugin.getRemainingFeatures().
-
-
Field Summary
Fields Modifier and Type Field and Description RealTime
duration
Duration of the output feature.boolean
hasDuration
True if an output feature has a specified duration.boolean
hasTimestamp
True if an output feature has its own timestamp.java.lang.String
label
Label for the sample of this feature.RealTime
timestamp
Timestamp of the output feature.float[]
values
Results for a single sample of this feature.
-
-
-
Field Detail
-
duration
public RealTime duration
Duration of the output feature. This is mandatory if the output has VariableSampleRate or FixedSampleRate and hasDuration is true, and unused otherwise.
-
hasDuration
public boolean hasDuration
True if an output feature has a specified duration. This is optional if the output has VariableSampleRate or FixedSampleRate, and and unused if the output has OneSamplePerStep.
-
hasTimestamp
public boolean hasTimestamp
True if an output feature has its own timestamp. This is mandatory if the output has VariableSampleRate, optional if the output has FixedSampleRate, and unused if the output has OneSamplePerStep.
-
label
public java.lang.String label
Label for the sample of this feature.
-
timestamp
public RealTime timestamp
Timestamp of the output feature. This is mandatory if the output has VariableSampleRate or if the output has FixedSampleRate and hasTimestamp is true, and unused otherwise.
-
values
public float[] values
Results for a single sample of this feature. If the output hasFixedBinCount, there must be the same number of values as the output's binCount count.
-
-