0.5.1 • Published 4 years ago

d3-quant v0.5.1

Weekly downloads
8
License
BSD-3-Clause
Repository
github
Last release
4 years ago

d3-quant

build codecov NPM

This is a d3 plugin for quantitative data analysis, quantitative finance and more.

yarn add d3-quant

Binary Tree

A binary tree data-structure which implements the red-black self balancing algorithm.

var tree = d3.binaryTree();
tree.insert(0.5);
tree.size           \\  1
tree.maxDepth       \\  0
tree.insert(0.8);
tree.size           \\  2
tree.maxDepth       \\  1

Traversing the tree can be done with in order or root to leaf.

Root to leaf traversal

tree.traverse(function (node) {});

In order traversal

tree.traverseInOrder(function (node) {});

Sobol low-discrepancy sequence

Generate a Sobol sequence for N dimensions.

const sobol = d3.sobol(5);
sobol.next()  \\ [ 0, 0, 0, 0, 0 ]
sobol.next()  \\ [ 0.5, 0.5, 0.5, 0.5, 0.5 ]

Make a Release

For maintainers, to make a new realase, bump the version and issue this commit message

Relase x.y.z

replacing x.t.z with the correct version matching the package.json.

0.5.1

4 years ago

0.5.0

4 years ago

0.4.3

6 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago