Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesh8v committed Jun 27, 2018
1 parent f4b8ac4 commit 519bb59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/compute_p_val.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function computepval(){
let ipos = document.getElementById("ipos").value;
let spos = document.getElementById("spos").value;
console.log("values", irr, srr,ipos, spos);
let rr = (parseFloat(irr) + parseFloat(srr))/2;
let sigma = Math.pow((alpha+beta*rr), 2);
let rr = ((parseFloat(irr)/1000000) + (parseFloat(srr)/1000000))/2;
let sigma = Math.pow(10,(alpha+beta*rr));
let dif = Math.abs(parseFloat(ipos)-parseFloat(spos));
let phi_func = dif/Math.sqrt(2*sigma);
console.log("Phi value", rr, sigma, dif, phi_func);
Expand Down

0 comments on commit 519bb59

Please sign in to comment.