Some modifications to the S-curve
This commit is contained in:
parent
f9a6535e10
commit
978289e76b
2 changed files with 7 additions and 4 deletions
1
csdr.c
1
csdr.c
|
@ -2592,6 +2592,7 @@ int main(int argc, char *argv[])
|
||||||
if(argc>=(7+add_q) && !strcmp(argv[6+add_q], "--output_error")) output_error = 1;
|
if(argc>=(7+add_q) && !strcmp(argv[6+add_q], "--output_error")) output_error = 1;
|
||||||
float* timing_error = NULL;
|
float* timing_error = NULL;
|
||||||
if(output_error) timing_error = (float*)malloc(sizeof(float)*the_bufsize);
|
if(output_error) timing_error = (float*)malloc(sizeof(float)*the_bufsize);
|
||||||
|
errhead(); fprintf(stderr, "--output_error mode\n");
|
||||||
|
|
||||||
if(argc>=(7+add_q) && !strcmp(argv[6+add_q], "--output_indexes")) output_indexes = 1;
|
if(argc>=(7+add_q) && !strcmp(argv[6+add_q], "--output_indexes")) output_indexes = 1;
|
||||||
unsigned* sampled_indexes = NULL;
|
unsigned* sampled_indexes = NULL;
|
||||||
|
|
|
@ -46,20 +46,22 @@ function fmtplot(h)
|
||||||
ylabel('Error value (TED output)');
|
ylabel('Error value (TED output)');
|
||||||
end
|
end
|
||||||
|
|
||||||
skips_gardner=0:256
|
skips_gardner=0:16:256
|
||||||
error_values_gardner=mkscurve('GARDNER',skips_gardner);
|
error_values_gardner=mkscurve('GARDNER',skips_gardner);
|
||||||
skips_earlylate=0:256
|
skips_earlylate=0:16:256
|
||||||
error_values_earlylate=mkscurve('EARLYLATE',skips_earlylate);
|
error_values_earlylate=mkscurve('EARLYLATE',skips_earlylate);
|
||||||
|
|
||||||
%graphics_toolkit("gnuplot")
|
%graphics_toolkit("gnuplot")
|
||||||
h=figure(1);
|
h=figure(1);
|
||||||
|
|
||||||
plot(skips_gardner, error_values_gardner, 'linewidth', 2);
|
plot((skips_gardner-128)/256, -error_values_gardner, 'linewidth', 2);
|
||||||
title('S-curve for Gardner TED');
|
title('S-curve for Gardner TED');
|
||||||
fmtplot(h)
|
fmtplot(h)
|
||||||
|
grid on
|
||||||
pause
|
pause
|
||||||
|
|
||||||
plot(skips_earlylate, error_values_earlylate, 'linewidth', 2);
|
plot((skips_earlylate-128)/256, error_values_earlylate, 'linewidth', 2);
|
||||||
title('S-curve for early-late TED');
|
title('S-curve for early-late TED');
|
||||||
fmtplot(h)
|
fmtplot(h)
|
||||||
|
grid on
|
||||||
pause
|
pause
|
||||||
|
|
Loading…
Reference in a new issue