Package ipsk.audio.dsp
Class Statistic
- java.lang.Object
-
- ipsk.audio.dsp.Statistic
-
public class Statistic extends java.lang.ObjectCreate new statistic.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
Fields Modifier and Type Field Description intchannelsNumber of channels of the audio data.longframePositionStart position of corresponding audio buffer.intframesNumber of frames.float[]linMaxLevelNormalized (0.0 - 1.0) linear maximal level.float[]linMinLevelNormalized (0.0 - 1.0) linear minimal level.float[]logMaxLevelNormalized maximum logarithmic level.float[]logMinLevelNormalized minimum logarithmic level.float[]maxValueThe maximum amplitude in the buffer.float[]minValueThe minimum amplitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChannels()Get number of channels.longgetFramePosition()Get frame position.intgetFrames()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.voidsetChannels(int i)Set number of channels.voidsetFramePosition(long l)Set frame position.voidsetFrames(int i)Set numbner of frames.voidsetLinMaxLevel(float[] fs)voidsetLinMinLevel(float[] fs)voidsetLogMaxLevel(float[] fs)voidsetLogMinLevel(float[] fs)voidsetMaxValue(float[] fs)voidsetMinValue(float[] fs)java.lang.StringtoString()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:
toStringin 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-
-
-