Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
lib-r-math.js
Advanced tools
Javascript Pure Implementation of Statistical R "core" numerical libRmath.so
Javascript ( TypeScript ) Pure Implementation of Statistical R "core" numerical libRmath.so library found here https://svn.r-project.org/R/trunk/src/nmath/
Work in progress (see list below of all c modules that need to be ported), please considering helping out and bring R core functionality to Javascript.
I first list the modules DONE so far, lets start at a positive note)
original c module | js/ts module name | port date | R - base functions |
---|---|---|---|
runif.c | ./runif.ts | 4-feb-2017 | implemented 3 RNG and native browser/node agnostic 64 RNG map to floating number |
bd0.c | ./lib/bd0.ts | 23-jan-2017 | hidden, used by modules dbinom.c ,dpois.c dt.c |
beta.c | ./lib/beta.ts | 23-jan-2017 | beta |
chebyshev.c | ./lib/chebyshev.ts | 23-jan-2017 | chebyshev_init , chebyshev_eval |
cospi.c | ./lib/cospi.ts | 23-jan-2017 | cospi, sinpi, tanpi |
gamma.c | ./lib/gamma.ts | 23-jan-2017 | [gammafn] gamme function(https://en.wikipedia.org/wiki/Gamma_function) |
lgamma.c | ./lib/lgamma.ts | 23-jan-2017 | logarithmic gamma lgammafn |
lgammacor.c | ./lib/lgammecor.ts | 23-jan-2017 | lgammacor |
stirlerr.c | ./lib/stirlerr | 23-jan-2017 | Computes the log of the error term in Stirling's formula ( stirlerr ) |
original c module | ported to javascript? | tested | R - base functions |
---|---|---|---|
bd0.c | done ./lib/bd0.ts | no | hidden, used by modules dbinom.c ,dpois.c dt.c |
bessel_i.c | TODO | ||
bessel_j.c | TODO | ||
bessel_k.c | TODO | ||
bessel_y.c | TODO | ||
beta.c | done ./lib/beta.ts | no | beta |
chebyshev.c | done ./lib/chebyshev.ts | no | chebyshev_init , chebyshev_eval |
choose.c | TODO | ||
cospi.c | done ./lib/cospi.ts | no | cospi, sinpi, tanpi |
d1mach.c | TODO | ||
dbeta.c | TODO | ||
dbinom.c | TODO | ||
dcauchy.c | TODO | ||
dchisq.c | TODO | ||
dexp.c | TODO | ||
df.c | TODO | ||
dgamma.c | TODO | ||
dgeom.c | TODO | ||
dhyper.c | TODO | ||
dlnorm.c | TODO | ||
dlogis.c | TODO | ||
dnbeta.c | TODO | ||
dnbinom.c | TODO | ||
dnchisq.c | TODO | ||
dnf.c | TODO | ||
dnorm.c | TODO | ||
dnt.c | TODO | ||
dpois.c | TODO | ||
dt.c | TODO | ||
dunif.c | TODO | ||
dweibull.c | TODO | ||
expm1.c | TODO | ||
fmax2.c | TODO | ||
fmin2.c | TODO | ||
fprec.c | TODO | ||
fround.c | TODO | ||
fsign.c | TODO | ||
ftrunc.c | TODO | ||
gamma.c | done ./lib/gamma.ts | no | gammafn |
gamma_cody.c | TODO | ||
gammalims.c | TODO | ||
i1mach.c | TODO | ||
imax2.c | TODO | ||
imin2.c | TODO | ||
lbeta.c | TODO | ||
lgamma.c | done ./lib/lgamma.ts | no | logarithmic gamma lgammafn |
lgammacor.c | done ./lib/lgammecor.ts | no | lgammacor |
log1p.c | TODO | ||
mlutils.c | TODO | ||
pbeta.c | TODO | ||
pbinom.c | TODO | ||
pcauchy.c | TODO | ||
pchisq.c | TODO | ||
pexp.c | TODO | ||
pf.c | TODO | ||
pgamma.c | TODO | ||
pgeom.c | TODO | ||
phyper.c | TODO | ||
plnorm.c | TODO | ||
plogis.c | TODO | ||
pnbeta.c | TODO | ||
pnbinom.c | TODO | ||
pnchisq.c | TODO | ||
pnf.c | TODO | ||
pnorm.c | TODO | ||
pnt.c | TODO | ||
polygamma.c | TODO | ||
ppois.c | TODO | ||
pt.c | TODO | ||
ptukey.c | TODO | ||
punif.c | TODO | ||
pweibull.c | TODO | ||
qbeta.c | TODO | ||
qbinom.c | TODO | ||
qcauchy.c | TODO | ||
qchisq.c | TODO | ||
qexp.c | TODO | ||
qf.c | TODO | ||
qgamma.c | TODO | ||
qgeom.c | TODO | ||
qhyper.c | TODO | ||
qlnorm.c | TODO | ||
qlogis.c | TODO | ||
qnbeta.c | TODO | ||
qnbinom.c | TODO | ||
qnchisq.c | TODO | ||
qnf.c | TODO | ||
qnorm.c | TODO | ||
qnt.c | TODO | ||
qpois.c | TODO | ||
qt.c | TODO | ||
qtukey.c | TODO | ||
qunif.c | TODO | ||
qweibull.c | TODO | ||
rbeta.c | TODO | ||
rbinom.c | TODO | ||
rcauchy.c | TODO | ||
rchisq.c | TODO | ||
rexp.c | TODO | ||
rf.c | TODO | ||
rgamma.c | TODO | ||
rgeom.c | TODO | ||
rhyper.c | TODO | ||
rlnorm.c | TODO | ||
rlogis.c | TODO | ||
rmultinom.c | TODO | ||
rnbinom.c | TODO | ||
rnchisq.c | TODO | ||
rnorm.c | TODO | ||
rpois.c | TODO | ||
rt.c | TODO | ||
runif.c | done | no | implemented 3 RNG and native browser/node agnostic 64 RNG map to floating number |
rweibull.c | TODO | ||
sexp.c | TODO | ||
sign.c | TODO | ||
signrank.c | TODO | ||
snorm.c | TODO | ||
stirlerr.c | done ./lib/stirlerr | no | Computes the log of the error term in Stirling's formula ( stirlerr ) |
toms708.c | TODO | ||
wilcox.c | TODO |
FAQs
Javascript Implementation of Statistical R standalone library rnmath
The npm package lib-r-math.js receives a total of 3,121 weekly downloads. As such, lib-r-math.js popularity was classified as popular.
We found that lib-r-math.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.