Program gto_real_to_binary_with_threshold

The gto_real_to_binary_with_threshold converts a sequence of real numbers into a binary sequence, given a threshold. The numbers below to the threshold will be 0.

For help type:

./gto_real_to_binary_with_threshold -h


In the following subsections, we explain the input and output paramters.

Input parameters

The gto_real_to_binary_with_threshold program needs two streams for the computation, namely the real sequence as input. These numbers should be splitted by lines.

The attribution is given according to:

Usage: ./gto_real_to_binary_with_threshold [options] [[--] args]
or: ./gto_real_to_binary_with_threshold [options]

It converts a sequence of real numbers into a binary sequence given a threshold.

-h, --help show this help message and exit

Basic options
-t, --threshold= The threshold in real format
< input.num Input numeric file (stdin)
> output.bin Output binary file (stdout)

Example: ./gto_real_to_binary_with_threshold -t < input.num > output.bin


An example of such an input file is:

12.25
1.2
5.44
5.51
7.97
2.34
8.123


Output

The output of the gto_real_to_binary_with_threshold program is a binary sequence.

Using the input above with the threshold of 5.5, an output example for this is the following:

1
0
0
1
1
0
1