|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectjAudioFeatureExtractor.ACE.DataTypes.Batch
public class Batch
Data type used to represent a batch file.
コンストラクタの概要 | |
---|---|
Batch()
|
メソッドの概要 | |
---|---|
void |
applySettings(RecordingInfo[][] recording,
int[] windowSize,
double[] windowOverlap,
double[] samplingRate,
boolean[] normalise,
boolean[] perWindow,
boolean[] overall,
java.lang.String[] destinationFK,
java.lang.String[] destinationFV,
int[] outputType)
apply this batch against info needed for a datamodel so that it can be executed. |
void |
execute()
Execute this batch by first setting the context ass specified in the batch, then executing using the data model. |
java.util.HashMap<java.lang.String,java.lang.Boolean> |
getActivated()
|
Aggregator[] |
getAggregator()
|
java.lang.String[][] |
getAggregatorFeatures()
|
java.lang.String[] |
getAggregatorNames()
|
java.lang.String[][] |
getAggregatorParameters()
|
java.util.HashMap<java.lang.String,java.lang.String[]> |
getAttributes()
|
DataModel |
getDataModel()
|
java.lang.String |
getDestinationFK()
|
java.lang.String |
getDestinationFV()
|
java.lang.String |
getName()
Returns the name of this batch. |
int |
getOutputType()
|
RecordingInfo[] |
getRecording()
|
double |
getSamplingRate()
|
double |
getWindowOverlap()
|
int |
getWindowSize()
|
boolean |
isNormalise()
|
boolean |
isOverall()
|
boolean |
isPerWindow()
|
java.lang.String |
outputXML()
Output this batch in XML format. |
void |
setAggregators(java.lang.String[] aggNames,
java.lang.String[][] aggFeatures,
java.lang.String[][] aggParam)
|
void |
setAttributes(java.util.HashMap<java.lang.String,java.lang.String[]> attributes)
|
void |
setDataModel(DataModel dm)
Set the data model against which this batch is executed. |
void |
setDestination(java.lang.String FK,
java.lang.String FV)
Sets where the extracted features should be stored. |
void |
setDestinationFK(java.lang.String destinationFK)
|
void |
setDestinationFV(java.lang.String destinationFV)
|
void |
setFeatures(java.util.HashMap<java.lang.String,java.lang.Boolean> activated,
java.util.HashMap<java.lang.String,java.lang.String[]> attributes)
Sets which features are active and the parameters of these features. |
void |
setName(java.lang.String name)
Sets the name of this batch. |
void |
setNormalise(boolean normalise)
|
void |
setOutputType(int outputType)
|
void |
setOverall(boolean overall)
|
void |
setPerWindow(boolean perWindow)
|
void |
setRecording(RecordingInfo[] recording)
|
void |
setRecordings(java.io.File[] files)
Sets the recordings that this batch will load and execute. |
void |
setSamplingRate(double samplingRate)
|
void |
setSettings(int windowSize,
double windowOverlap,
double samplingRate,
boolean normalise,
boolean perWindow,
boolean overall,
int outputType)
Sets the attributes for how the features are to be extracted when executed. |
void |
setWindowOverlap(double windowOverlap)
|
void |
setWindowSize(int windowSize)
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Batch()
メソッドの詳細 |
---|
public void setDataModel(DataModel dm)
dm
- Context of this batch.public void execute() throws java.lang.Exception
java.lang.Exception
public void setRecordings(java.io.File[] files) throws java.lang.Exception
files
- recordings which are to be scheduled for porcessing.
java.lang.Exception
public void setSettings(int windowSize, double windowOverlap, double samplingRate, boolean normalise, boolean perWindow, boolean overall, int outputType)
windowSize
- Size of the analysis window in samples.windowOverlap
- Percent overlap of the windows. Must be greater than or equal
to 0 and less than 1.samplingRate
- number of samples per second of audio.normalise
- should the files be normalised before execution.perWindow
- should features be extracted for each window in each file.overall
- should overall features be extracted for each files.outputType
- what format should the extracted features be saved in.public void setDestination(java.lang.String FK, java.lang.String FV)
FK
- Location where feature descriptions should be stored.FV
- Location where extracted features should be stored.public void setFeatures(java.util.HashMap<java.lang.String,java.lang.Boolean> activated, java.util.HashMap<java.lang.String,java.lang.String[]> attributes)
activated
- Which features are to be extracted.attributes
- settings of parameters of these features.public java.lang.String getName()
public void setName(java.lang.String name)
name
- Name of this batch.public Aggregator[] getAggregator() throws java.lang.Exception
java.lang.Exception
public java.lang.String outputXML()
public void applySettings(RecordingInfo[][] recording, int[] windowSize, double[] windowOverlap, double[] samplingRate, boolean[] normalise, boolean[] perWindow, boolean[] overall, java.lang.String[] destinationFK, java.lang.String[] destinationFV, int[] outputType)
recording
- list of files to be analyzedwindowSize
- size of the analysis window in sampleswindowOverlap
- percent overlap as a value between 0 and 1.samplingRate
- number of samples per secondnormalise
- should the file be normalized before executionperWindow
- should features be extracted on a window bby window basisoverall
- should global features be extracteddestinationFK
- location of the feature declaration filedestinationFV
- location where extracted features should be storedoutputType
- what output format should extracted features be stored in.public java.util.HashMap<java.lang.String,java.lang.String[]> getAttributes()
public java.util.HashMap<java.lang.String,java.lang.Boolean> getActivated()
public void setAttributes(java.util.HashMap<java.lang.String,java.lang.String[]> attributes)
public java.lang.String getDestinationFK()
public void setDestinationFK(java.lang.String destinationFK)
public java.lang.String getDestinationFV()
public void setDestinationFV(java.lang.String destinationFV)
public boolean isNormalise()
public void setNormalise(boolean normalise)
public int getOutputType()
public void setOutputType(int outputType)
public boolean isOverall()
public void setOverall(boolean overall)
public boolean isPerWindow()
public void setPerWindow(boolean perWindow)
public double getSamplingRate()
public void setSamplingRate(double samplingRate)
public double getWindowOverlap()
public void setWindowOverlap(double windowOverlap)
public int getWindowSize()
public void setWindowSize(int windowSize)
public void setRecording(RecordingInfo[] recording)
public RecordingInfo[] getRecording()
public DataModel getDataModel()
public void setAggregators(java.lang.String[] aggNames, java.lang.String[][] aggFeatures, java.lang.String[][] aggParam)
public java.lang.String[] getAggregatorNames()
public java.lang.String[][] getAggregatorFeatures()
public java.lang.String[][] getAggregatorParameters()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |