Package ipsk.audio.dsp
Class Statistic
- java.lang.Object
-
- ipsk.audio.dsp.Statistic
-
public class Statistic extends java.lang.Object
Create new statistic.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
Fields Modifier and Type Field Description int
channels
Number of channels of the audio data.long
framePosition
Start position of corresponding audio buffer.int
frames
Number of frames.float[]
linMaxLevel
Normalized (0.0 - 1.0) linear maximal level.float[]
linMinLevel
Normalized (0.0 - 1.0) linear minimal level.float[]
logMaxLevel
Normalized maximum logarithmic level.float[]
logMinLevel
Normalized minimum logarithmic level.float[]
maxValue
The maximum amplitude in the buffer.float[]
minValue
The minimum amplitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannels()
Get number of channels.long
getFramePosition()
Get frame position.int
getFrames()
Get number of frames.float[]
getLinMaxLevel()
Get maximum level.float[]
getLinMinLevel()
Get minimum level.float[]
getLogMaxLevel()
Get logarythmic maximum level.float[]
getLogMinLevel()
Get logarythmic minimum level.float[]
getMaxValue()
Get maximum value.float[]
getMinValue()
Get minimum value.void
setChannels(int i)
Set number of channels.void
setFramePosition(long l)
Set frame position.void
setFrames(int i)
Set numbner of frames.void
setLinMaxLevel(float[] fs)
void
setLinMinLevel(float[] fs)
void
setLogMaxLevel(float[] fs)
void
setLogMinLevel(float[] fs)
void
setMaxValue(float[] fs)
void
setMinValue(float[] fs)
java.lang.String
toString()
String representation.
-
-
-
Field Detail
-
framePosition
public long framePosition
Start position of corresponding audio buffer.
-
channels
public int channels
Number of channels of the audio data.
-
frames
public int frames
Number of frames.
-
maxValue
public float[] maxValue
The maximum amplitude in the buffer.
-
minValue
public float[] minValue
The minimum amplitude.
-
linMinLevel
public float[] linMinLevel
Normalized (0.0 - 1.0) linear minimal level.
-
linMaxLevel
public float[] linMaxLevel
Normalized (0.0 - 1.0) linear maximal level.
-
logMinLevel
public float[] logMinLevel
Normalized minimum logarithmic level.
-
logMaxLevel
public float[] logMaxLevel
Normalized maximum logarithmic level.
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- representation
-
getChannels
public int getChannels()
Get number of channels.- Returns:
- channels
-
getFramePosition
public long getFramePosition()
Get frame position.- Returns:
- frame position
-
getFrames
public int getFrames()
Get number of frames.- Returns:
- frames
-
getLinMaxLevel
public float[] getLinMaxLevel()
Get maximum level.- Returns:
- maximum level
-
getLinMinLevel
public float[] getLinMinLevel()
Get minimum level.- Returns:
- minimum level
-
getLogMaxLevel
public float[] getLogMaxLevel()
Get logarythmic maximum level.- Returns:
- log. maximum level
-
getLogMinLevel
public float[] getLogMinLevel()
Get logarythmic minimum level.- Returns:
- log. minimum level
-
getMaxValue
public float[] getMaxValue()
Get maximum value.- Returns:
- max value
-
getMinValue
public float[] getMinValue()
Get minimum value.- Returns:
- min value
-
setChannels
public void setChannels(int i)
Set number of channels.- Parameters:
i
- number of channels
-
setFramePosition
public void setFramePosition(long l)
Set frame position.- Parameters:
l
- new frame position
-
setFrames
public void setFrames(int i)
Set numbner of frames.- Parameters:
i
- number of frames
-
setLinMaxLevel
public void setLinMaxLevel(float[] fs)
- Parameters:
fs
-
-
setLinMinLevel
public void setLinMinLevel(float[] fs)
- Parameters:
fs
-
-
setLogMaxLevel
public void setLogMaxLevel(float[] fs)
- Parameters:
fs
-
-
setLogMinLevel
public void setLogMinLevel(float[] fs)
- Parameters:
fs
-
-
setMaxValue
public void setMaxValue(float[] fs)
- Parameters:
fs
-
-
setMinValue
public void setMinValue(float[] fs)
- Parameters:
fs
-
-
-