public class ESTTrackReader extends Object
Constructor and Description |
---|
ESTTrackReader(DataInputStream dis)
Constructor from an already open DataInputStream
|
ESTTrackReader(String fileName)
Constructor from a file name
|
Modifier and Type | Method and Description |
---|---|
float |
getClosestTime(double seconds)
Get the frame time which is closest to a certain time specification.
|
float[] |
getFrame(int i)
Get an individual frame
|
float |
getFrameEntry(int i,
int j)
Get an individual frame entry
|
float[][] |
getFrames()
Get the frames associated with this track
|
float[] |
getMinMax()
Get the max and the min over the whole file
|
float[] |
getMinMaxNo1st()
Get the max and the min over the whole file, excluding the first column (which can be the energy in the EST LPCs)
|
int |
getNumChannels()
Get the number of channels in this track
|
int |
getNumFrames()
Get the number of frames in this track
|
float |
getTime(int index)
Get an individual time associated with this track
|
float[] |
getTimes()
Get the times associated with this track
|
float |
getTimeSpan()
Get the time associated with the last frame
|
boolean |
isBigEndian()
Returns the endianness of the file
|
boolean |
isBinary()
Returns the mode of the file (ascii or binary)
|
public ESTTrackReader(DataInputStream dis)
dis
- DataInputStream to read the EST_Track frompublic ESTTrackReader(String fileName)
fileName
- the name of the file to read the EST_Track frompublic int getNumFrames()
public int getNumChannels()
public float[] getTimes()
public float[][] getFrames()
public float getTime(int index)
index
- index of time to getpublic boolean isBigEndian()
public boolean isBinary()
public float getClosestTime(double seconds)
seconds
- A time point, in seconds.public float getTimeSpan()
public float[] getFrame(int i)
i
- index of framepublic float getFrameEntry(int i, int j)
i
- index of framej
- index into framei
at index j
public float[] getMinMax()
public float[] getMinMaxNo1st()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.