class ScalarQuantiser

Interface for Scalar Quantisers


Type:

    Abstract

Include file:
    SQuantise.h

ScalarQuantiser provides an interface for all scalar quantisers. The number of reconstruction levels are specified on construction by a parameter of type QLevels. Rate and Levels return the bit rate and number of reconstruction levels respectively. Index returns the index of the closest reconstruction level, while Reconstruction returns the reconstruction value for a specified index. Q returns the quantised value of its parameter. IndexD is the same as Index except that a record of quantisation distortion is maintained. Distortion returns the current average value of this distortion, while reset_distortion resets the record.


Members: