bdp

Birth-death process

Usage no npm install needed!

<script type="module">
  import bdp from 'https://cdn.skypack.dev/bdp';
</script>

README

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