|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectframed.Selection
public class Selection
Field Summary | |
---|---|
static java.lang.String |
synopsis
|
Constructor Summary | |
---|---|
Selection(FrameSource source)
Generate a default feature selection: dimensions 0-11 (standard mfcc) |
|
Selection(FrameSource source,
int n)
Select the first n coefficients |
|
Selection(FrameSource source,
int[] indices)
Apply a selection to the incoming feature frame |
Method Summary | |
---|---|
static Selection |
create(FrameSource source,
java.lang.String formatString)
Create a Selection object according to the parameter string and attach it to the source. |
int |
getFrameSize()
Return the outgoing frame size |
static void |
main(java.lang.String[] args)
main program; for usage see synopsis |
boolean |
read(double[] buf)
Read the next frame and transfer the features to the outgoing buffer according to the indices |
java.lang.String |
toString()
Return a String representation of the FrameSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String synopsis
Constructor Detail |
---|
public Selection(FrameSource source)
source
- public Selection(FrameSource source, int n)
source
- public Selection(FrameSource source, int[] indices)
source
- indices
- a implicit mapping, place the indices of the desired dimensions hereMethod Detail |
---|
public static Selection create(FrameSource source, java.lang.String formatString) throws MalformedParameterStringException
source
- framesource to read fromformatString
- comma separated list of indices or ranges (e.g. "0,1,4-8")
MalformedParameterStringException
public int getFrameSize()
getFrameSize
in interface FrameSource
public static void main(java.lang.String[] args) throws java.io.IOException, MalformedParameterStringException
args
-
java.io.IOException
IOException,
- MalformedParameterStringException
MalformedParameterStringException
public boolean read(double[] buf) throws java.io.IOException
read
in interface FrameSource
buf
- buffer to save the frame; implementing objects may depend
on a constant dimensionduring subsequent calls
java.io.IOException
public java.lang.String toString()
FrameSource
toString
in interface FrameSource
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |