shapley
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

A TypeScript/JavaScript library for calculating Shapley Value

Deno

import { shapley, RealNumber } from "https://deno.land/x/shapley@1.0.5/mod.ts";

Node.js

npm install shapley

Usage

const shapleyValueForP = shapley(N, v)(p)
// N = set of players
// v = value function
// p = current player

For examples, please check examples folder.

Acknowledgement

This library is mostly based on the previous work in Taxi Sharing Fare App repository.

Package Sidebar

Install

npm i shapley

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

34.4 kB

Total Files

16

Last publish

Collaborators

  • mettlex