this.j$=this.jStat=function(e){function s(n,t){var r=tt&&(t=n[r]);return t},f.mean=function(n){return f.sum(n)/n.length},f.meansqerr=function(n){return f.sumsqerr(n)/n.length},f.geomean=function(n){return m.pow(f.product(n),1/n.length)},f.median=function(n){var t=n.length,r=n.slice().sort(d);return 1&t?r[t/2|0]:(r[t/2-1]+r[t/2])/2},f.cumsum=function(n){return f.cumreduce(n,function(n,t){return n+t})},f.cumprod=function(n){return f.cumreduce(n,function(n,t){return n*t})},f.diff=function(n){var t,r=[],e=n.length;for(t=1;t-4*v.log(r)*r*r););return e/r},g.randg=function(n,t,r){var e,i,o,a,u,f,s=n;if(r=r||t,n=n||1,t)return(f=g.zeros(t,r)).alter(function(){return g.randg(n)}),f;n<1&&(n+=1),e=n-1/3,i=1/v.sqrt(9*e);do{for(;(a=1+i*(u=g.randn()))<=0;);a*=a*a,o=v.random()}while(o>1-.331*v.pow(u,4)&&v.log(o)>.5*u*u+e*(1-a+v.log(a)));if(n==s)return e*a;for(;0===(o=v.random()););return v.pow(o,1/s)*e*a},function(n){for(var t=0;t>>0&&(n<0?0:m.combination(n+t-1,t-1)*d.pow(1-r,n)*d.pow(r,t))},cdf:function(n,t,r){var e=0,i=0;if(n<0)return 0;for(;i<=n;i++)e+=m.negbin.pdf(i,t,r);return e}}),m.extend(m.hypgeom,{pdf:function(n,t,r,e){if(n!=n|0)return!1;if(n<0||nh.abs(r[a][o])&&(a=u);var f=r[o];r[o]=r[a],r[a]=f;for(u=o+1;ue;)i=u,u=g.add(g.multiply(a,i),o),f++;return u},gauss_seidel:function(n,t,r,e){for(var i,o,a,u,f,s=0,c=n.length,l=[],m=[],d=[];se;)o=f,f=g.add(g.multiply(u,o),a),s+=1;return f},SOR:function(n,t,r,e,i){for(var o,a,u,f,s,c=0,l=n.length,m=[],d=[],p=[];ce;)a=s,s=g.add(g.multiply(f,a),u),c++;return s},householder:function(n){for(var t,r,e,i,o=n.length,a=n[0].length,u=0,f=[],s=[];ur);e++);return t[e-=1]+(r-n[e])*l[e]+g.sq(r-n[e])*i[e]+(r-n[e])*g.sq(r-n[e])*m[e]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(n){var t,r,e,i,o,a=n.length,u=n[0].length,f=0,s=[],c=[],l=[],m=[],d=[],p=[],h=[];for(f=0;f than Test "'+t+'". I am '+e+'% certain that the changes in Test "'+n+'" will improve your conversion rate.';"br"==lang&&(i='O Teste '+n+" converteu "+r+" melhor do que o Teste "+t+'. Estou '+e+"% certo de que as mudanças no Teste "+n+" vão aumentar sua taxa de conversão.");return i}(i,o,r,e)),d(".results-text").html(function(n){if(95<=n)var t=np_localize_ab.ab_calc_significant;else if(90<=n)t=np_localize_ab.ab_calc_significant_questionable;else t=np_localize_ab.ab_calc_significant_not;return t}(e)),d(".tr .td-percent-value").each(function(n){var t=d(this).text();t=Math.round(t.slice(0,-1)),isNaN(t)||d(this).html(t+"%")})}function h(n){return String.fromCharCode(64+n)}d(".td-visitors input").live("change keyup input",function(){var n=d(this).closest(".tr").index();t(d(".td-visitors input"),n,this.value),r(n),e()}),d(".td-conversions input").live("change keyup input",function(){var n=d(this).closest(".tr").index();t(d(".td-conversions input"),n,this.value),r(n),e()}),d(".test-more .btn").click(function(){var n=1+d(".test-list .tbody .tr").length;if(n<=4){var t=h(n);d(".test-list .tbody").append(''+t+'
>'),4==n&&d(".test-more .btn").addClass("btn-disabled")}}),d(document).ready(function(){e()})}(jQuery);