https://github.com/maksim2498/hurst
Small CLI utility used to evaluate Hurst Exponent based on CSV files ( (this is just a mirror of https://hub.mos.ru/fominmv2498/hurst) )
https://github.com/maksim2498/hurst
cli-app hurst-exponent
Last synced: 4 months ago
JSON representation
Small CLI utility used to evaluate Hurst Exponent based on CSV files ( (this is just a mirror of https://hub.mos.ru/fominmv2498/hurst) )
- Host: GitHub
- URL: https://github.com/maksim2498/hurst
- Owner: Maksim2498
- License: mit
- Created: 2023-11-27T14:31:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T13:53:20.000Z (over 1 year ago)
- Last Synced: 2025-06-30T20:07:07.194Z (4 months ago)
- Topics: cli-app, hurst-exponent
- Language: C
- Homepage: https://hub.mos.ru/fominmv2498/hurst
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Hurst
## Table of Contents
- [Table of Contents](#table-of-contents);
- [About](#about);
- [Building](#building);
- [Running](#running);
- [Options](#options).## About
This is a small CLI program used for evaluation of the Hurst's exponent
of the time series from a CSV file.## Building
For building you will nead the following:
- C99 compiler;
- [CMake](https://cmake.org/).If you already have both, to build you need firstly got to the project's root
folder (the one in which this README file is located) and secondly execute the
following commands in your terminal:```bash
cmake -S . -B target
cmake --build target
```If no errors where emitted, you should have a build program at `./target/hurst`.
## Running
The program has the following CLI interface:
```plaintext
hurst [options]
```To evaluate the Hurst's exponent you need a CSV file containing a time series of
measurements of some value with time stamp or without it.If you have a CSV file of the following format:
| Date | Value |
|-------------------|-------|
| 1970-1-1 00:00:00 | 24.98 |
| 1970-1-2 00:00:00 | 13.37 |then you need no options to pass to the program and you can simply run the following way:
```bash
hurst path/to/csv/file.csv
```If your time series CSV file has some other format see [Options](#options) section
for more information on program's behaviour customization.## Options
| Option | Description |
|--------------------------|------------------------------------------------------------|
| `--help`, `-h` | Prints help message and quits |
| `--help-date-fmt` | Prints date format help message and quits |
| `--version`, `-v` | Prints version message and quits |
| `--show-config` | Prints current program configuration |
| `--sep=`, `-s` | Specifies column separator ("," by default) |
| `--date-fmt=` | Specifies date format ("%y-%M-%d %h:%m:%s" by default) |
| `--date-col=` | Specifies data column offset (0 by default) |
| `--val-col=` | Specifies value column offset (1 by default) |
| `--from=` | Specifies minimum value date (minimum possible by default) |
| `--until=` | Specifies maximum value date (maximum possible by default) |
| `--max-inc-len=` | Specifies maximum increment length (10 by default) |
| `--no-date` | Disables value's date processing |
| `--ignore-bad` | Enables ignoring of bad values and dates |
| `--sort`, `-S` | Enables records sorting by date (in ascending order) |