minor changes

This commit is contained in:
gurkenhabicht 2018-05-19 19:08:02 +02:00
parent 07d6db93dc
commit 112eb48e1d
2 changed files with 12 additions and 11 deletions

View File

@ -1,16 +1,17 @@
//
//
// NLMSvariants.c
//
// Created by Stefan Friese on 26.04.18.
//
//
/*
===========================================================================
Created by Stefan Friese on 26.04.2018
===========================================================================
*/
//
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <float.h> // DBL_MAX
//#include <float.h> // 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 <digit>\t\tLearnrate, 0 < learnrate < 1.\n");
printf("\t-s <digit>\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);
}

View File

@ -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 `$ <binary> -h` for help.
### Usage