Skip to content

lon9/mkinput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#mkinput

Build Status

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.json

then 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

About

mkinput command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages