Skip to content

saromanov/entropyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entropyjs Build Status

Usage

var entropy = require('entropyjs');
console.log(entropy.calc("abcdeabcdefj"));
//2.7516291673878226

Cross Entropy

var entropy = require('entropyjs');
console.log(entropy.cross([1,2,1,2,1,2], [1,1,1,1,1,1]))
//1.5961177691966342

Joint Shannon entropy

var entropy = require('entropyjs');
console.log(entropy.jointShannon("010101", "011010")); //1.3296613488547582

Conditional entropy

var entropy = require('entropyjs');
console.log(entropy.conditional("010101", "011010")); //2.4282736375228677

About

Basic entropy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published