#mkinput
mkinput is command to generate input.txt for programs.
Executable drone.io
##Example
Input json file
{
"set": 2, // The number of data sets.
"sep":"EOF", // Separator of the data sets.
"templates":[ // Data set templates.
{
"min":1.0, // Min value of the data.
"max":5.0, // Max value of the data.
"dig": 1, // The number of digit.
"minRows": 1, // Min rows.
"maxRows": 9, // Max rows.
"minCols": 2, // Min clos.
"maxCols": 2, // Max cols.
"sep": " ", // Separator of cols.
"rowSize": true, // If we write this field, row size is written in front of the data.
"colSize": false
}
]
}
Type command. mkinput < <source-file>
$ mkinput < src.jsonthen generate data sets like this.
8
2.6 2.2
3.8 3.1
2.5 5.0
1.8 2.9
4.5 3.3
1.6 1.5
2.6 1.4
1.4 2.3
EOF
4
4.1 1.7
4.2 1.5
1.4 2.4
2.7 2.1
EOF
