|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.analysis.FeatureManager
public class FeatureManager
A static class for managing audio feature data. Features are stored in a Map indexed by the Sample
s they
refer to. FeatureManager can look for feature files associated with Sample
s.
A danger to be aware of is the fact that FeatureManager is not well coupled to SampleManager
, so if you wish
to remove Sample
s you'll have to make sure you also manually remove entries in FeatureManager, otherwise
the Sample
data will not be freed. This might be addressed in future versions.
Constructor Summary | |
---|---|
FeatureManager()
|
Method Summary | |
---|---|
static void |
featuresForGroup(java.lang.String groupName)
|
static FeatureSet |
featuresForSample(Sample sample)
Gets the FeatureSet for a given Sample. |
static FeatureSet |
featuresForSampleIfLoaded(Sample sample)
Gets the FeatureSet for a given Sample, only if the FeatureSet is already stored in memory. |
static boolean |
isVerbose()
Determines if FeatureManager is being verbose. |
static void |
removeSample(Sample s)
Removes the features associated with the given Sample . |
static void |
setFeaturesForSample(Sample s,
FeatureSet fs)
Sets the FeatureSet for the given Sample. |
static void |
setVerbose(boolean verbose)
Tells FeatureManager to produce verbose output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureManager()
Method Detail |
---|
public static void setFeaturesForSample(Sample s, FeatureSet fs)
s
- the Sample.fs
- the FeatureSet.public static FeatureSet featuresForSample(Sample sample)
sample
- the Sample to search for features of.
public static FeatureSet featuresForSampleIfLoaded(Sample sample)
sample
- the Sample to search for features of.
public static void featuresForGroup(java.lang.String groupName)
public static void removeSample(Sample s)
Sample
.
s
- the Sample.public static boolean isVerbose()
public static void setVerbose(boolean verbose)
verbose
- true for verbose output.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |