Skip to content

v0.8 Interface Changes

null-a edited this page Jun 23, 2016 · 3 revisions

Multivariate Distributions

The multivariate distributions Dirichlet and MultivariateGaussian are now tensor based. Sampling from either of these distributions now returns a vector rather than an array. The parameters of these distributions are also now expected be given as vectors/matrices.

See:

Supported versions of Node.js

The v0.10 and v0.11 series of Node.js are no longer supported. The earliest version now supported is v0.12.4.

indexOf

The header function indexOf has been removed. The JS version of this function can be used as a replacement by changing indexOf(arr, item) to arr.indexOf(item).

Array utility functions

The following array utility functions have been moved out of the header and into the array-utils-package.

ringForward
ringBackward
mapPairs2
mapPairsC
mapPairsNC
mapReduce
mapReduce1
insertAt
removeAt
replaceAt
drop
take
dropWhile
takeWhile

Functional wrappers of binary operators

The following functions have been removed from the header:

plus
minus
mult
div
and
or
eq
neq
lt
gt
leq
geq