fi.helsinki.cs.ohtu.mpeg2.audio.mpa
Class DummyPAModel

java.lang.Object
  extended by fi.helsinki.cs.ohtu.mpeg2.audio.mpa.DummyPAModel
All Implemented Interfaces:
PsychoacousticModel

public class DummyPAModel
extends java.lang.Object
implements PsychoacousticModel

A dummy psychoacoustic model.


Field Summary
 int SBLIMIT
           
 
Constructor Summary
DummyPAModel()
           
 
Method Summary
 double[] computeSMRs(double[] samples, int[][] scF)
          Compute the Signal-to-Mask Ratios for the sub-bands of the input PCM audio frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SBLIMIT

public final int SBLIMIT
See Also:
Constant Field Values
Constructor Detail

DummyPAModel

public DummyPAModel()
Method Detail

computeSMRs

public double[] computeSMRs(double[] samples,
                            int[][] scF)
Description copied from interface: PsychoacousticModel
Compute the Signal-to-Mask Ratios for the sub-bands of the input PCM audio frame.

Specified by:
computeSMRs in interface PsychoacousticModel
scF - The scalefactors for each subband (dimensions [SBLIMIT][3]).
Returns:
An array containing the signal-to-mask ratios for each subband.