Commit ffe85080 authored by Julien David's avatar Julien David
Browse files

readme

parent 95205547
Loading
Loading
Loading
Loading
+8 −0
Changes for README.md: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,5 +28,13 @@ Let k be the dimension of the vector, please note that
 - Product: t < 1/k**k
 - Geometric Mean: t < 1/k

### Random text generator

The program is currently configured to generate text with a fixed collision entropy.
Modify the declaration of the random generator line 21 of file src/random_text.cpp
to use another random generator.
Possibilities, so far are:
ShannonEntropy, CollisionEntropy, ProductFunction, GeometricMean.

To execute:
./random_text [dimension] [target_value] [text_length]
+3 −0
Changes for src/random_text.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@
#include<math.h>
#include<time.h>
#include"CollisionEntropy.hpp"
#include"ShannonEntropy.hpp"
#include"ProductFunction.hpp"
#include"GeometricMean.hpp"
#include"RandomTextGenerator.hpp"

int main(int argc, char ** argv){