NW.UnivariateForecasting.CLI 4.2.1

dotnet tool install --global NW.UnivariateForecasting.CLI --version 4.2.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local NW.UnivariateForecasting.CLI --version 4.2.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NW.UnivariateForecasting.CLI&version=4.2.1
                    
nuke :add-package NW.UnivariateForecasting.CLI --version 4.2.1
                    

NW.UnivariateForecasting.CLI

NW.UnivariateForecasting.CLI is a NuGet tool to perform univariate forecasting tasks on the values you provide.

Getting Started

If /home/nw.univariateforecasting is the folder in which the .nupkg file is located, you can install it and run it using these commands:

dotnet tool install --global NW.UnivariateForecasting.CLI --add-source /home/nw.univariateforecasting
nwunif

CLI Reference

Command Sub Command Options Exit Codes
session Success
session forecast --init:{filename}<br />--folderpath:{path}<br />--savesession<br />--roundingdigits:{number}<br />--forecastingdenominator:{number} Success<br />Failure

Examples

The simplest command you can run is session forecast, which performs a forecasting task on the values you provide.

The command above requires that you have the required file (Init.json) located in the same folder as the application, which by default it's the working folder for all the application's activities. If you wish to store the files elsewhere, you can specify a new working folder by using the folderpath option - i.e. --folderpath:C:\Documents

At very least, the command will look like:

nwunif session forecast --init:Init.json

The command above will log something like this to the console:

***********************************************************
'##::: ##:'##:::::'##:'##::::'##:'##::: ##:'####:'########:
 ###:: ##: ##:'##: ##: ##:::: ##: ###:: ##:. ##:: ##.....::
 ####: ##: ##: ##: ##: ##:::: ##: ####: ##:: ##:: ##:::::::
 ## ## ##: ##: ##: ##: ##:::: ##: ## ## ##:: ##:: ######:::
 ##. ####: ##: ##: ##: ##:::: ##: ##. ####:: ##:: ##...::::
 ##:. ###: ##: ##: ##: ##:::: ##: ##:. ###:: ##:: ##:::::::
 ##::. ##:. ###. ###::. #######:: ##::. ##:'####: ##:::::::
..::::..:::...::...::::.......:::..::::..::....::..::::::::
****************************************Version: 4.2.1*****


[2026-07-28 16:28:42:381] Attempting to load a 'ForecastingInit' object from: C:\Init.json.
[2026-07-28 16:28:42:439] A 'ForecastingInit' object has been successfully loaded.
[2026-07-28 16:28:42:441] Attempting to perform a forecasting task out of the provided ForecastingInit...
[2026-07-28 16:28:42:441] The provided folder path is: 'C:\'.
[2026-07-28 16:28:42:441] The provided forecasting denominator is: '0,00000000000001'.
[2026-07-28 16:28:42:441] The provided rounding digits are: '15'.
[2026-07-28 16:28:42:441] The provided observation name is: ''.
[2026-07-28 16:28:42:441] The provided values are: '2'.
[2026-07-28 16:28:42:441] The provided coefficient is: 'null'.
[2026-07-28 16:28:42:442] The provided error is: 'null'.
[2026-07-28 16:28:42:442] The provided steps are: '1'.
[2026-07-28 16:28:42:442] Processing step nr.: '1'.
[2026-07-28 16:28:42:442] Creating a SlidingWindow out of the provided arguments...
[2026-07-28 16:28:42:443] The provided steps are: '2'.
[2026-07-28 16:28:42:446] The following SlidingWindow has been created: '[ Items: '2' ]
[ Id: '1', X_Actual: '58,5', Y_Forecasted: '615,26' ]
[ Id: '2', X_Actual: '615,26', Y_Forecasted: 'null' ]'.
[2026-07-28 16:28:42:447] Creating an Observation out of the provided SlidingWindow: '[ Items: '2' ]'...
[2026-07-28 16:28:42:451] The following Observation has been created: '[ Coefficient: '0,095081754055196', Error: '0', NextValue: '58,49999999999989' ]'.
[2026-07-28 16:28:42:452] The observation's coefficient is: '0,095081754055196'.
[2026-07-28 16:28:42:452] The observation's error is: '0'.
[2026-07-28 16:28:42:452] The current observation's next value is: '58,49999999999989'.
[2026-07-28 16:28:42:452] The forecasting task has been successfully completed.

If you wish to store the outcome to a handy JSON file, you can use the --savesession option:

nwunif session forecast --init:Init.json --savesession

The produced JSON will look like:

{
  "Init": {
    "ObservationName": "Sales USD",
    "Values": [
      58.5,
      615.26,
      659.84,
      635.69,
      612.27,
      632.94
    ],
    "Coefficient": 0.5,
    "Error": 0.01,
    "Steps": 2
  },
  "Observations": [
    {
      "Coefficient": 0.5,
      "Error": 0.01,
      "NextValue": 316.48
    },
    {
      "Coefficient": 0.5,
      "Error": 0.01,
      "NextValue": 158.25
    }
  ],
  "Version": "4.2.1"
}

If you wish to store the files elsewhere, you can specify a new working folder by using the --folderpath option - i.e. --folderpath:C:\Documents.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
4.2.1 93 7/28/2026