Slench255

Untitled

Apr 2nd, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. // ts  = team size,
  2. // mc  = mission criticality,
  3. // tl  = team location,
  4. // tc  = team capacity,
  5. // dkg = domain knowledge gaps,
  6. // d   = dependencies
  7. double GetComplexity(double ts, double mc, double tl, double tc, double dkg, double d) {
  8.   var nums = new List<double> {ts, mc, tl, tc, dkg, d};
  9.   var sum = nums.Sum(i => Math.Log10(i));
  10.   return Math.Pow(2, sum);
  11. }
  12.  
  13. // mu  = market uncertainty,
  14. // tu  = technical uncertainty,
  15. // pd  = project domain,
  16. // dsf = dependencies and scope flexibility
  17. double GetUncertainty(double mu, double tu, double pd, double dsf) {
  18.   var nums = new List<double> {mu, tu, pd, dsf};
  19.   var sum = nums.Sum(i => Math.Log10(i));
  20.   return Math.Pow(2, sum);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment