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"
#define PAQA_SHOW_CHARTS 0 |
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.
void linearRegression |
( |
double * |
xa, |
|
|
double * |
ya, |
|
|
int |
numPoints, |
|
|
double * |
a, |
|
|
double * |
b |
|
) |
| |
int main |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
int ShowDitherDistribution |
( |
void |
| ) |
|
int TestAllDitherClipping |
( |
void |
| ) |
|
int TestAllDitherScaling |
( |
void |
| ) |
|