Quantizzatore class
This reference is written in Italian: it comes from the comments of the source code, which are in Italian like the code of the books.
public static class QuantizzatoreMethods
static double Passo(int bit)Il passo q fra i livelli di un convertitore a n bit.
static double[] Quantizza(double[] x, int bit)Il segnale come lo scrive un convertitore a n bit.
static double[] ConDither(double[] x, int bit, Random caso)Lo stesso, con il dither: prima di arrotondare si aggiunge un rumore casuale piccolo (triangolare, fra -q e q). L'errore smette di seguire il segnale e diventa rumore.
static double Snr(double[] x, double[] y)Il rapporto segnale/rumore in decibel: la potenza del segnale diviso la potenza dell'errore y - x (capitolo I.6).