Download the PHP package soandso/forecast-verifiability without Composer
On this page you can find all versions of the php package soandso/forecast-verifiability. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soandso/forecast-verifiability
More information about soandso/forecast-verifiability
Files in soandso/forecast-verifiability
Package forecast-verifiability
Short Description Weather forecast verifiability
License GPL-2.0-or-later
Informations about the package forecast-verifiability
Weather forecast verifiability - PHP library for evaluating the success of alternative weather forecasts
Forecast success is characterized by indicators called meteorological forecast success criteria. Success criteria are quantitative estimates of the compliance of actual and predictive weather characteristics.
Setup
Add the library to your composer.json
file in your project:
Use composer to install the library:
Composer will install Forecast verifiability inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.
You can also use composer on the command line to require and install Forecast verifiability:
Minimum Requirements
- PHP 7
Description
At the beginning, it is necessary to form a conjugacy matrix. To do this, you need to create an object of the ConjugacyMatrix class by giving the parameter the name of the meteorological value for which the assessment, e.g. wind:
Next, fill in the values of the elements of the conjugacy matrix
Taken designation of conjugacy matrix elements
Forecasted manifestation of a phenomenon | Forecasted absence of a phenomenon | Total number of cases | |
---|---|---|---|
Observability of a phenomenon is observed | n11 | n12 | n10 |
There is a lack of a phenomena | n21 | n22 | n20 |
Total number of cases | n01 | n02 | N |
After the conjugacy matrix is constructed, individual criteria can be calculated. To do this, first create an object of the CriteriaForecast class by giving it the conjugacy matrix object
Calculation general forecast accuracy. Sets the name of the criterion (necessary for generating output)ю
Valid list of criteria:
Sets criterion units
Value calculation
To generate a general conclusion (many different criteria can be calculated for one task), you need to add the result to a general container for output.
Calculation forecast accuracy criterion.
Calculation forecast reliability criterion.
Calculation climate entropy.
Calculation conditional entropy.
Calculation amount of forecaste information.
Calculation information relation.
Get all values of criteria:
Get the value of a criterion by naming it:
The output of the output function can be an array of the following form:
Standards
Grouping conforms to the following standards:
- PSR-2 - Basic coding standard (https://www.php-fig.org/psr/psr-2/)
- PSR-4 - Autoloader (https://www.php-fig.org/psr/psr-4/)
- PSR-12 - Extended coding style guide (https://www.php-fig.org/psr/psr-12/)
License
Grouping is licensed under the GPLv2 License (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).