wadim / pert-estimate

Calculates estimate(s) based on the PERT method by using "most likely time", "optimistic time", and "pessimistic time"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pert-estimate

Version npmBuild StatusCoverage StatusCode Climate

Calculate estimate(s) based on the PERT method by using "most likely time", "optimistic time", and "pessimistic time".

Installation

$ npm install --save pert-estimate

Usage

var pert = require('pert-estimate');

/**
 * Expected duration
 *
 * Two different ways of specifying arguments;
 * individual arguments or as an object.
 *
 * Order: optimistic, nominal, pessimistic
 */
console.log(pert.expectedDuration(1, 3, 14)); // 4.5
console.log(pert.expectedDuration({
    optimistic: 1,
    nominal: 3,
    pessimistic: 14
}));

/**
 * Standard deviation
 */
console.log(pert.standardDeviation(1, 3, 14)); // 2.16
console.log(pert.standardDeviation({
    optimistic: 1,
    nominal: 3,
    pessimistic: 14
}));

License

MIT-licensed. See LICENSE.

About

Calculates estimate(s) based on the PERT method by using "most likely time", "optimistic time", and "pessimistic time"

License:MIT License


Languages

Language:JavaScript 100.0%