Tests the dither scaling and conversion accuracy in pa_converters.c.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "portaudio.h"
#include "pa_converters.h"
#include "pa_dither.h"
#include "pa_types.h"
#include "pa_endianness.h"
#include "paqa_macros.h"
◆ LINEARITY_NUM_STEPS
#define LINEARITY_NUM_STEPS 41 |
◆ NUM_BINS
◆ NUM_SAMPLES
◆ PAQA_SHOW_CHARTS
#define PAQA_SHOW_CHARTS 0 |
◆ CalculateRSquared()
double CalculateRSquared |
( |
double * | xa, |
|
|
double * | ya, |
|
|
int | numPoints ) |
Calculate the Coefficient of Determination, "R-squared". You want a value as close to 1.0 as possible.
◆ linearRegression()
void linearRegression |
( |
double * | xa, |
|
|
double * | ya, |
|
|
int | numPoints, |
|
|
double * | a, |
|
|
double * | b ) |
◆ main()
int main |
( |
int | argc, |
|
|
const char ** | argv ) |
◆ ShowDitherDistribution()
int ShowDitherDistribution |
( |
void | | ) |
|
◆ TestAllDitherClipping()
int TestAllDitherClipping |
( |
void | | ) |
|
◆ TestAllDitherScaling()
int TestAllDitherScaling |
( |
void | | ) |
|