| Crates.io | sqsh-testdata |
| lib.rs | sqsh-testdata |
| version | 0.1.3 |
| created_at | 2022-07-31 12:43:23.312149+00 |
| updated_at | 2022-08-19 21:47:24.578667+00 |
| description | Tool to generate testdata for data compression |
| homepage | |
| repository | |
| max_upload_size | |
| id | 636134 |
| size | 17,274 |
A tool to generate synthetic floating point datasets. Currently the only datasets with a gaussian/normal distribution are supported. Further distributions can be added if the need may rise.
Use stable cargo release to install the toolset:
cargo install sqsh-testdata
Use latest version from github:
git clone https://github.com/sqsh-project/testdata.git && \
cd sqsh-testdata && \
cargo install --path .
The easiest way to generate a dataset is to specify mean, standard deviation and the number of numbers to be generated via num:
sqsh-testdata --mean 10 --std 2 --size 1000 # mandatory arguments
The default generates single-precision floating-point data. This can be changed using the --datatype argument:
sqsh-testdata --mean 10 --std 2 --size 1000 --datatype double
Should it be necessary to define a different endianess than the machine native the --endianess argument can be used
sqsh-testdata --mean 10 --std 2 --size 1000 --endianess little
By providing a --seed value the generated data can be reproduced on different environments:
sqsh-testdata --mean 10 --std 2 --size 1000 --seed 42
The data can be output to a file by piping the result to a file:
sqsh-testdata --mean 10 --std 2 --size 1000 > /tmp/data.raw # save to file
For more information the help menu can be used: td --help