Skip to content

saromanov/bdp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bdp

Birth-death process

Install

npm install bdp

Example:

var bdp = require('bdp');
var model = new bdp.BDP([5,4,2], [4,5,10]);
for(var i = 0;i < 4;++i) {
    console.log(model.probability(i));
}

API:

bdp.BDP(lambdas, mus)

lambdas

list of birth rates.

mus

list of death rates.

probability(t)

Return probability at the time t

LICENCE

MIT

About

Implementation of Birth-death process

Resources

Stars

Watchers

Forks

Packages

No packages published