Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lib-r-math.js

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-r-math.js

Javascript Pure Implementation of Statistical R "core" numerical libRmath.so

  • 1.0.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
decreased by-16.35%
Maintainers
1
Weekly downloads
 
Created
Source

libRmath.js

Javascript ( TypeScript ) Pure Implementation of Statistical R "core" numerical libRmath.so library found here https://svn.r-project.org/R/trunk/src/nmath/

Progress (DONE and TODO)

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)

DONE

original c modulejs/ts module nameport dateR - base functions
Toms708.java./lib/Toms708.ts14 March 2017from Java Version James Curran (j.curran@auckland.ac.nz) (Java version)
pbeta.c./lib/pbeta.ts14 March 2017beta distribution function
pnorm.c./lib/pnorm.ts9 March 2017Normal distribution function
gammalims.c./lib/gammalims.ts5 march 2017calculates legal bounds of gamme_fn
fround.c./lib/fround.ts5 march 2017rounds off to a set number of digites
fprec.c./lib/fprec.ts4 march 2017Returns the value of x rounded to "digits" significant
expm1.c./lib/expm1.ts4 march 2017Compute the Exponential minus 1
dweibull.c./lib/dweibull.ts4 march 2017The density function of the Weibull distribution.
dt.c./lib/dt.ts4 March 2017The t density
dpois.c./lib/dpois.ts4 March 2017dpois() computes the Poisson probability lb^x exp(-lb) / x!
dnchisq.c./lib/dnchisq.tsThe density of the noncentral chi-squared distribution with "df"
dnt.c./lib/dnt.ts4 March 2017Computes the density of the noncentral beta distribution with
dnorm.c./lib/dnorm.ts25 feb 2017Compute the density of the normal distribution.
dnf.c./lib/dnt.ts25 feb 2017The density function of the non-central F distribution
dnbinom.c./lib/dnbinom.ts25 feb 2017Computes the negative binomial distribution.
dlogis.c./lib/dlogis.ts4 March 2017not sure what it does
dlnorm.c./lib/dlnorm.ts4 March 2017The density of the lognormal distribution.
dhyper.c./lib/dhyper.ts4 March 2017The hypergeometric probability
dgeom.c./lib/dgeom.ts4 March 2017Computes the geometric probabilities, Pr(X=x) = p(1-p)^x.
dnbeta.c./lib/dnbeta.ts4 March 2017Computes the density of the noncentral beta distribution with
pgamma.c./lib/pgamme.ts9 March 2017This function computes the distribution function for the gamma distribution
dgamma.c./lib/dgamma.ts27 feb 2017Computes the density of the gamma distribution
lbeta.c./lib/lbeta.tsMarch 2 2017This function returns the value of the log beta function.

| C99 gamma function | ./lib/c99_gamma.ts | 25 feb 2017 | added C99 gamma and lgamma, | |dnbinom.c | ./lib/dnbinom.ts | 25 feb 2017 | negative binomial distribution. |dbeta.c | ./lib/dbeta.ts | 25 feb 2017 | R "dbeta" beta distribution function | |dbinom.c | ./lib/dbinom.ts | 25 feb 2017 | probability mass function of binomial distribution | |log1p.c | ./lib/log1p.ts | 25 feb 2017| calculate log(1+x) for small value of x| |choose.c | choose.ts | 21 feb 2017 | R "choose" function, C(n,k) binomial coefficients | |gamma_cody.c | gamme_cody.ts| 19 feb 2017| GAMMA function using algo of W. J. Cody, | |bessel_i.c | bessel_i.ts | 19 feb 2017 | besseli | |bessel_j.c | bessel_j.ts | 19 feb 2017 | besselj | |bessel_k.c | bessel_k.ts | 19 feb 2017 | besselK | |bessel_y.c | bessel_y.ts | 19 feb 2017 | bessely | |sexp.c | ./sexp.ts| 8-feb-2017 | (Random variates from the standard exponential distribution) exp_rand (internally used) function | |dunif.c | ./dunif.ts| 8-feb-2017 | R "dunif" function | |bessel_k.c | ./bessel_k.ts| 8-feb-2017 | R "besselK" function http://www.netlib.org/specfun/rkbesl | |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_fn.ts | 23-jan-2017 | [gammafn] gamme function(https://en.wikipedia.org/wiki/Gamma_function) | |lgamma.c | ./lib/lgamma_fn.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 ) |

TODO

original c moduleported to javascript?testedR - base functions
bd0.cdone ./lib/bd0.tsnohidden, used by modules dbinom.c ,dpois.c dt.c
bessel_i.cdonenoR "besseli" Modified Bessel function of first kind.
bessel_j.cdonenoR "besselj" gives the Bessel function of the first kind.
bessel_k.cdonenoR "besselK" function http://www.netlib.org/specfun/rkbesl
bessel_y.cdonenoR "bessely" gives the Bessel function of the second kind .
beta.cdonenobeta
chebyshev.cdone ./lib/chebyshev.tsnochebyshev_init , chebyshev_eval
choose.cdonenoR "choose" function, C(n,k) binomial coefficients
cospi.cdone ./lib/cospi.tsnocospi, sinpi, tanpi
d1mach.cdonenoincluded in ./_general.ts
dbeta.cdonenodistribution function of beta
dbinom.cdonenoprobability mass function of binomial distribution
dcauchy.cTODO
dchisq.cTODO
dexp.cTODO
df.cTODO
dgamma.cdonenoComputes the density of the gamma distribution,
dgeom.cdonenoComputes the geometric probabilities, Pr(X=x) = p(1-p)^x
dhyper.cdonenoThe hypergeometric probability
dlnorm.cTODO
dlogis.cTODO
dnbeta.cdonenoComputes the density of the noncentral beta distribution with
dnbinom.cdonenonegative binomial probability prob mass function
dnchisq.cTODO
dnf.cdonenoThe density function of the non-central F distribution
dnorm.cdonenoCompute the density of the normal distribution.
dnt.cdonenothe non-central t density
dpois.cdonenodpois() computes the Poisson probability lb^x exp(-lb) / x!
dt.cdonenoThe t density
dunif.cdonenoR "dunif" function
dweibull.cdonenoThe density function of the Weibull distribution.
expm1.cdonenoCompute the Exponential minus 1
fmax2.cTODO
fmin2.cTODO
fprec.cdonenoReturns the value of x rounded to "digits" significant
fround.cdonenofround function
fsign.cTODO
ftrunc.cTODO
gamma.cdone ./lib/gamma_fn.tsnogammafn
gamma_cody.cdonenoGAMMA function using algo of W. J. Cody,
gammalims.cdonenocalculates legal bounds of gamma_fn
i1mach.cTODO
imax2.cTODO
imin2.cTODO
lbeta.cdonenoThis function returns the value of the log beta function.
lgamma.cdone ./lib/lgamma_fn.tsnologarithmic gamma lgammafn
lgammacor.cdone ./lib/lgammecor.tsnolgammacor
log1p.cdonenocalculate log(1+x) with high accuracy for small x
mlutils.cTODO
pbeta.cdonenopBeta distribution function
pbinom.cTODO
pcauchy.cTODO
pchisq.cTODO
pexp.cTODO
pf.cTODO
pgamma.cdonenoThis function computes the distribution function for the gamma distribution
pgeom.cTODO
phyper.cTODO
plnorm.cTODO
plogis.cTODO
pnbeta.cTODO
pnbinom.cTODO
pnchisq.cTODO
pnf.cTODO
pnorm.cdonenonormal distribution function
pnt.cTODO
polygamma.cTODO
ppois.cTODO
pt.cTODO
ptukey.cTODO
punif.cTODO
pweibull.cTODO
qbeta.cTODO
qbinom.cTODO
qcauchy.cTODO
qchisq.cTODO
qexp.cTODO
qf.cTODO
qgamma.cTODO
qgeom.cTODO
qhyper.cTODO
qlnorm.cTODO
qlogis.cTODO
qnbeta.cTODO
qnbinom.cTODO
qnchisq.cTODO
qnf.cTODO
qnorm.cTODO
qnt.cTODO
qpois.cTODO
qt.cTODO
qtukey.cTODO
qunif.cTODO
qweibull.cTODO
rbeta.cTODO
rbinom.cTODO
rcauchy.cTODO
rchisq.cTODO
rexp.cTODO
rf.cTODO
rgamma.cTODO
rgeom.cTODO
rhyper.cTODO
rlnorm.cTODO
rlogis.cTODO
rmultinom.cTODO
rnbinom.cTODO
rnchisq.cTODO
rnorm.cTODO
rpois.cTODO
rt.cTODO
runif.cdonenoimplemented 3 RNG and native browser/node agnostic 64 RNG map to floating number
rweibull.cTODO
sexp.cdoneno(Random variates from the standard exponential distribution) exp_rand (internally used) function
sign.cTODO
signrank.cTODO
snorm.cTODO
stirlerr.cdone ./lib/stirlerrnoComputes the log of the error term in Stirling's formula ( stirlerr )
toms708.cNAPnoported instead Java Version from James Curran (j.curran@auckland.ac.nz) (Java version)
wilcox.cTODO

Keywords

FAQs

Package last updated on 14 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc