From 112eb48e1db9e3c72cb310cdecd7d5f584a24e60 Mon Sep 17 00:00:00 2001 From: gurkenhabicht Date: Sat, 19 May 2018 19:08:02 +0200 Subject: [PATCH] minor changes --- src/ansi_c_implementation/NLMSvariants.c | 21 +++++++++++---------- src/cpp_implementation/README.md | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/ansi_c_implementation/NLMSvariants.c b/src/ansi_c_implementation/NLMSvariants.c index 2a3ac2d..8814658 100644 --- a/src/ansi_c_implementation/NLMSvariants.c +++ b/src/ansi_c_implementation/NLMSvariants.c @@ -1,16 +1,17 @@ -// -// -// NLMSvariants.c -// -// Created by Stefan Friese on 26.04.18. -// -// +/* +=========================================================================== + +Created by Stefan Friese on 26.04.2018 + +=========================================================================== +*/ +// #include #include #include #include #include -#include // DBL_MAX +//#include // DBL_MAX #include "nlms_types.h" // added types #define RGB_COLOR 255 @@ -79,7 +80,7 @@ int main( int argc, char **argv ) { unsigned int *seed = NULL; unsigned k, xLength; unsigned int windowSize = 5; - unsigned int samplesCount = 20; + unsigned int samplesCount = 501; char *stdcolor = "green"; colorChannel = stdcolor; unsigned int uint_buffer[1]; @@ -861,7 +862,7 @@ void usage ( void ) { printf("\t-l \t\tLearnrate, 0 < learnrate < 1.\n"); printf("\t-s \t\tDigit for random seed generator.\n\t\t\t\tSame Digits produce same random values. Default is srand by time."); printf("\n\n"); - printf("lms compares prediction methods of least mean square methods.\nBy default it reads ppm file format and return logfiles as well\nas an svg graphs as an output of said least mean square methods.\n\nExample:\n\tlms -i myimage.ppm -w 3 -c green -s 5\n"); + printf("lms compares prediction methods of least mean square filters.\nBy default it reads ppm file format and return logfiles as well\nas an svg graphs as an output of said least mean square methods.\n\nExample:\n\tlms -i myimage.ppm -w 3 -c green -s 5\n"); exit(8); } diff --git a/src/cpp_implementation/README.md b/src/cpp_implementation/README.md index 0617d25..31c8e52 100644 --- a/src/cpp_implementation/README.md +++ b/src/cpp_implementation/README.md @@ -15,7 +15,7 @@ This little piece of code compares 3 different implementations of a least mean s Greyscale PPM files can be used for input at this iteration. Output will be generated as .txt files with predicted value generated by the filter and its error value as well as given actual value from the PPM file. Furthermore there is an output as an svg graph to compare the implementatiosn on a visual level. These graphical results are build from __graphResults_template.html__ which creates the actual output to __graphResults.html__. Open this file to see the results. You can hide graphs by clicking on its name for better visibility. -Use `$ ./lms -h` for help. +Use `$ -h` for help. ### Usage