|
1 | | -Math smart statistics |
2 | | -===================== |
| 1 | +<h1 align="center"> |
| 2 | + PHP Statistic Algorithms |
| 3 | +</h1> |
| 4 | + |
| 5 | +<p align="center"> |
| 6 | + <a href="https://mathematicator.com" target="_blank"> |
| 7 | + <img src="https://avatars3.githubusercontent.com/u/44620375?s=100&v=4"> |
| 8 | + </a> |
| 9 | +</p> |
3 | 10 |
|
4 | 11 | [](https://github.com/mathematicator-core/statistic/actions?query=workflow%3A%22Integrity+check%22) |
5 | 12 | [](https://codecov.io/gh/mathematicator-core/statistic) |
| 13 | +[](https://packagist.org/packages/mathematicator-core/statistic) |
| 14 | +[](https://packagist.org/packages/mathematicator-core/statistic) |
6 | 15 | [](./LICENSE) |
7 | | - |
8 | | -Smart statistic algorithms. |
| 16 | +[](https://phpstan.org/) |
9 | 17 |
|
10 | 18 | > Please help improve this documentation by sending a Pull request. |
11 | 19 |
|
12 | | -Install using Composer: |
| 20 | +## Installation |
13 | 21 |
|
14 | 22 | ``` |
15 | 23 | composer require mathematicator-core/statistic |
16 | 24 | ``` |
17 | 25 |
|
18 | | -Contribution |
19 | | ----- |
| 26 | +## Mathematicator Framework tools structure |
| 27 | + |
| 28 | +The biggest advantage is that you can choose which layer best fits |
| 29 | +your needs and start build on the top of it, immediately, without the need |
| 30 | +to create everything by yourself. Our tools are tested for bugs |
| 31 | +and tuned for performance, so you can save a significant amount |
| 32 | +of your time, money, and effort. |
| 33 | + |
| 34 | +Framework tend to be modular as much as possible, so you should be able |
| 35 | +to create an extension on each layer and its sublayers. |
| 36 | + |
| 37 | +**Mathematicator framework layers** ordered from the most concrete |
| 38 | +one to the most abstract one: |
| 39 | + |
| 40 | +<table> |
| 41 | + <tr> |
| 42 | + <td> |
| 43 | + <b> |
| 44 | + <a href="https://github.com/mathematicator-core/search"> |
| 45 | + Search |
| 46 | + </a> |
| 47 | + </b> |
| 48 | + </td> |
| 49 | + <td> |
| 50 | + Modular search engine layer that calls its sublayers |
| 51 | + and creates user interface. |
| 52 | + </td> |
| 53 | + </tr> |
| 54 | + <tr> |
| 55 | + <td> |
| 56 | + <b> |
| 57 | + <a href="https://github.com/mathematicator-core/vizualizator"> |
| 58 | + Vizualizator |
| 59 | + </a> |
| 60 | + </b> |
| 61 | + </td> |
| 62 | + <td> |
| 63 | + Elegant graphic visualizer that can render to |
| 64 | + SVG, PNG, JPG and Base64.<br /> |
| 65 | + <u>Extensions:</u> |
| 66 | + <b> |
| 67 | + <a href="https://github.com/mathematicator-core/mandelbrot-set"> |
| 68 | + Mandelbrot set generator |
| 69 | + </a> |
| 70 | + </b> |
| 71 | + </td> |
| 72 | + </tr> |
| 73 | + <tr> |
| 74 | + <td> |
| 75 | + <b> |
| 76 | + <a href="https://github.com/mathematicator-core/calculator"> |
| 77 | + Calculator |
| 78 | + </a> |
| 79 | + </b> |
| 80 | + </td> |
| 81 | + <td> |
| 82 | + Modular advance calculations layer. |
| 83 | + <br /> |
| 84 | + <u>Extensions:</u> |
| 85 | + <b> |
| 86 | + <a href="https://github.com/mathematicator-core/integral-solver"> |
| 87 | + Integral Solver |
| 88 | + </a>, |
| 89 | + <a href="https://github.com/mathematicator-core/statistic"> |
| 90 | + Statistics |
| 91 | + </a> |
| 92 | + </b> |
| 93 | + </td> |
| 94 | + </tr> |
| 95 | + <tr> |
| 96 | + <td> |
| 97 | + <b> |
| 98 | + <a href="https://github.com/mathematicator-core/engine"> |
| 99 | + Engine |
| 100 | + </a> |
| 101 | + </b> |
| 102 | + </td> |
| 103 | + <td> |
| 104 | + Core logic layer that maintains basic controllers, |
| 105 | + DAOs, translator, common exceptions, routing etc. |
| 106 | + </td> |
| 107 | + </tr> |
| 108 | + <tr> |
| 109 | + <td> |
| 110 | + <b> |
| 111 | + <a href="https://github.com/mathematicator-core/tokenizer"> |
| 112 | + Tokenizer |
| 113 | + </a> |
| 114 | + </b> |
| 115 | + </td> |
| 116 | + <td> |
| 117 | + Tokenizer that can convert string (user input / LaTeX) to numbers |
| 118 | + and operators. |
| 119 | + </td> |
| 120 | + </tr> |
| 121 | + <tr> |
| 122 | + <td> |
| 123 | + <b> |
| 124 | + <a href="https://github.com/mathematicator-core/numbers"> |
| 125 | + Numbers |
| 126 | + </a> |
| 127 | + </b> |
| 128 | + </td> |
| 129 | + <td> |
| 130 | + Fast & secure storage for numbers with arbitrary precision. |
| 131 | + It supports Human string and LaTeX output and basic conversions. |
| 132 | + </td> |
| 133 | + </tr> |
| 134 | +</table> |
| 135 | + |
| 136 | +**Third-party packages:** |
| 137 | + |
| 138 | +⚠️ Not guaranteed! |
| 139 | + |
| 140 | +<table> |
| 141 | + <tr> |
| 142 | + <td> |
| 143 | + <b> |
| 144 | + <a href="https://github.com/cothema/math-php-api"> |
| 145 | + REST API |
| 146 | + </a> |
| 147 | + </b> |
| 148 | + </td> |
| 149 | + <td> |
| 150 | + Install the whole pack as a REST API service |
| 151 | + on your server (Docker ready) or |
| 152 | + access it via public cloud REST API. |
| 153 | + </td> |
| 154 | + </tr> |
| 155 | +</table> |
| 156 | + |
| 157 | +## Contribution |
20 | 158 |
|
21 | 159 | ### Tests |
22 | 160 |
|
23 | 161 | All new contributions should have its unit tests in `/tests` directory. |
24 | 162 |
|
25 | | -Before you send a PR, please, check that all tests pass. |
| 163 | +Before you send a PR, please, check all tests pass. |
26 | 164 |
|
27 | 165 | This package uses [Nette Tester](https://tester.nette.org/). You can run tests via command: |
28 | 166 | ```bash |
29 | | -vendor/bin/tester -c tests/php.ini tests |
| 167 | +composer test |
| 168 | +```` |
| 169 | + |
| 170 | +For benchmarking, we use [phpbench](https://github.com/phpbench/phpbench). |
| 171 | +You can run benchmarks this way: |
| 172 | +```bash |
| 173 | +composer global require phpbench/phpbench @dev # only the first time |
| 174 | +phpbench run |
| 175 | +```` |
| 176 | +
|
| 177 | +Before PR, please run complete code check via command: |
| 178 | +```bash |
| 179 | +composer cs:install # only first time |
| 180 | +composer fix # otherwise pre-commit hook can fail |
30 | 181 | ```` |
0 commit comments