AZarenejad / Lloyds-Implentaion

Data Communication - UT CE - Spring 99- Computer Assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lloyds Algorithm Implementation

This repository contains of a simple implementaion of Lloyds algorithm to quantize a sample. In this implementaion we use gaussian distribution as an example.

This algorithm used to quantize diffrent distribiution as a non-uniform quantization.

For example for three diffrent of inputs we can get a process like this:

Guasian Sigma = 1.0, Number of Bits in Quantizer = 2, Number of Samples = 2000

Alt Text

Guasian Sigma = 2.0, Number of Bits in Quantizer = 3, Number of Samples = 2000

Alt Text

Guasian Sigma = 1.0, Number of Bits in Quantizer = 4, Number of Samples = 10000

Alt Text

Files

  • Lloyds.ipynb : jupyter notebook of all implementains (algorithm+plot+animation)
  • Lloyds.ipy : python export of above notebook

About

Data Communication - UT CE - Spring 99- Computer Assignment


Languages

Language:Jupyter Notebook 97.5%Language:Python 2.5%