diff --git a/.github/.keepalive b/.github/.keepalive index 8700640..33effba 100644 --- a/.github/.keepalive +++ b/.github/.keepalive @@ -1 +1 @@ -2023-03-01T06:12:30.485Z +2023-06-01T06:09:10.440Z diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6adf06a..26be02d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -110,9 +110,9 @@ jobs: exit 0 fi rm -rf ./bin/cli - rm test/test.cli.js - rm etc/cli_opts.json - rm docs/usage.txt + rm -f test/test.cli.js + rm -f etc/cli_opts.json + rm -f docs/usage.txt # For all dependencies, check in all *.js files if they are still used; if not, remove them: jq -r '.dependencies | keys[]' ./package.json | while read -r dep; do @@ -149,6 +149,12 @@ jobs: # Add link definition for CLI package to README.md: find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
/
\n\n[$escapedPkg]: https:\/\/www.npmjs.com\/package\/$escapedPkg/" + # Replace GitHub MathJax equations with SVGs: + - name: 'Replace GitHub MathJax equations with SVGs' + run: | + find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g' + find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' + # Replace GitHub links to individual packages with npm links: - name: 'Replace all GitHub links to individual packages with npm links' run: | @@ -162,8 +168,8 @@ jobs: # Remove unnecessary files: - name: 'Remove unnecessary files' run: | - rm docs/repl.txt - rm docs/types/test.ts + rm -f docs/repl.txt + rm -f docs/types/test.ts # Replace all stdlib GitHub dependencies with the respective npm packages: - name: 'Replace all stdlib GitHub dependencies with the respective npm packages' @@ -191,7 +197,7 @@ jobs: # Publish package to npm: - name: 'Publish package to npm' - uses: JS-DevTools/npm-publish@v1 + uses: JS-DevTools/npm-publish@v2 with: token: ${{ secrets.NPM_TOKEN }} access: public diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2cb9b1c..2b5297f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -20,13 +20,18 @@ Marcus Matt Cochrane Milan Raj Momtchil Momtchev +Naresh Jagadeesan <37257700+Infinage@users.noreply.github.com> Ognjen Jevremović Philipp Burckhardt Pranav <85227306+Pranavchiku@users.noreply.github.com> Ricky Reusser +Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Ryan Seal Seyyed Parsa Neshaei Shraddheya Shendre Stephannie Jiménez Gacha +Yernar Yergaziyev dorrin-sot <59933477+dorrin-sot@users.noreply.github.com> +drunken_devv <90555965+amitjimiwal@users.noreply.github.com> +orimiles5 <97595296+orimiles5@users.noreply.github.com> rei2hu diff --git a/README.md b/README.md index c1b2235..b3443e2 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,14 @@ The [probability density function][pdf] (PDF) for a [truncated normal][truncated -
+```math +f(x;\mu,\sigma,a,b) = \begin{cases} \frac{\frac{1}{\sigma}\phi(\frac{x - \mu}{\sigma})}{\Phi(\frac{b - \mu}{\sigma}) - \Phi(\frac{a - \mu}{\sigma}) } & \text{ if } a < x < b \\ 0 & \text{ otherwise } \end{cases} +``` + + @@ -222,7 +226,7 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. --> [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg -[chat-url]: https://gitter.im/stdlib-js/stdlib/ +[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im [stdlib]: https://github.com/stdlib-js/stdlib