actuary
Actuary
Last updated a year ago by duanckham .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install actuary 
SYNC missed versions from official npm registry.

Actuary

const actuary = require('actuary');

function equation(a1, a2, a3, done) {
  done(a1 + a2 + a3);
}

function referee(best, result) {
  return best < result;
}

let params = [
  [1, 2, 9],
  [1, 2, 4],
  actuary.range(5, 8, 1), // 5, 6, 7
];

let bestParams = await actuary.calculate(params, equation, referee[, concurrency = 10]);

console.log(bestParams); // [ 9, 4, 7 ]

Current Tags

  • 1.0.4                                ...           latest (a year ago)

4 Versions

  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |