/dports/math/dieharder/dieharder-3.31.1/libdieharder/ |
H A D | chisq.c | 49 double delchisq,chisq,pvalue; in chisq_poisson() local 64 chisq = 0.0; in chisq_poisson() 68 chisq += delchisq; in chisq_poisson() 108 double delchisq,chisq,pvalue; in chisq_pearson() local 113 chisq = 0.0; in chisq_pearson() 117 chisq += delchisq; in chisq_pearson() 155 chisq = 0.0; in chisq_binomial() 171 chisq += delchisq; in chisq_binomial() 206 double chisq = 0.0; in chisq2d() local 249 chisq = 0.0; in chisq_geometric() [all …]
|
H A D | diehard_operm5.c | 130 double av,norm,x[120],chisq,ndof; in diehard_operm5() local 182 chisq = 0.0; in diehard_operm5() 202 chisq = chisq + x[i]*pseudoInv[i][j]*x[j]; in diehard_operm5() 209 chisq = chisq + x[i]*x[i]; in diehard_operm5() 219 if((chisq/norm) >= 0){ in diehard_operm5() 220 printf("\n\nchisq/norm: %10.5f :-) and chisq: %10.5f\n",(chisq/norm), chisq); in diehard_operm5() 224 if((chisq/norm) < 0){ in diehard_operm5() 225 printf("\n\nCHISQ NEG.! chisq/norm: %10.5f and chisq: %10.5f",(chisq/norm), chisq); in diehard_operm5() 228 chisq = fabs(chisq / norm); in diehard_operm5() 236 printf("# diehard_operm5(): chisq[%u] = %10.5f\n",kspi,chisq); in diehard_operm5() [all …]
|
H A D | Vtest.c | 39 vtest->chisq = 0.0; in Vtest_create() 61 double delchisq,chisq; in Vtest_eval() local 97 chisq = 0.0; in Vtest_eval() 121 chisq += delchisq; in Vtest_eval() 124 i,vtest->ndof,vtest->x[i],vtest->y[i],delchisq,chisq); in Vtest_eval() 154 chisq += delchisq; in Vtest_eval() 159 itail,vtest->ndof,vtest->x[itail],vtest->y[itail],delchisq,chisq); in Vtest_eval() 202 printf("Evaluated chisq = %f for %u degrees of freedom\n",chisq,vtest->ndof); in Vtest_eval() 204 vtest->chisq = chisq; in Vtest_eval() 212 vtest->pvalue = gsl_sf_gamma_inc_Q((double)(vtest->ndof)/2.0,chisq/2.0); in Vtest_eval()
|
H A D | diehard_operm5.c.save | 124 double av,norm,x[120],chisq,ndof,pvalue; 175 chisq = 0.0; 194 chisq = chisq + x[i]*pseudoInv[i][j]*x[j]; 201 chisq = chisq + x[i]*x[i]; 211 if((chisq/norm) >= 0){ 212 printf("\n\nchisq/norm: %10.5f :-) and chisq: %10.5f\n",(chisq/norm), chisq); 216 if((chisq/norm) < 0){ 217 printf("\n\nCHISQ NEG.! chisq/norm: %10.5f and chisq: %10.5f",(chisq/norm), chisq); 220 chisq = fabs(chisq / norm); 226 printf("# diehard_operm5(): chisq[%u] = %10.5f\n",kspi,chisq); [all …]
|
/dports/audio/praat/praat-6.2.03/dwtools/ |
H A D | ContingencyTable.cpp | 62 double chisq, df; in ContingencyTable_chisqProbability() local 64 if (chisq == 0.0 && df == 0.0) in ContingencyTable_chisqProbability() 66 return NUMchiSquareQ (chisq, df); in ContingencyTable_chisqProbability() 79 double chisq, df; in ContingencyTable_cramersStatistic() local 81 if (chisq == 0.0 && df == 0.0) in ContingencyTable_cramersStatistic() 83 return sqrt (chisq / (sum * nmin)); in ContingencyTable_cramersStatistic() 88 double chisq, df; in ContingencyTable_contingencyCoefficient() local 90 if (chisq == 0.0 && df == 0.0) in ContingencyTable_contingencyCoefficient() 93 return sqrt (chisq / (chisq + (double) sum)); in ContingencyTable_contingencyCoefficient() 123 longdouble chisq = 0.0; in ContingencyTable_chisq() local [all …]
|
/dports/math/PDL/PDL-2.019/Lib/Fit/ |
H A D | LM.pm | 108 my ($isig2,$chisq) = (1/($sig*$sig),0); #$isig2="inverse of sigma squared" 129 $chisq = ($y-$ym)*($y-$ym); 130 $chisq *= $isig2; 131 $chisq = $chisq->sumover; # calculate chi^2 136 if ($iter == 0) {$olda .= $a; $ochisq .= $chisq; $oldbet .= $bet; 139 $di .= abs($chisq-$ochisq); 141 if ($chisq < $ochisq) { 143 $ochisq .= $chisq; 149 $chisq .= $ochisq; 154 } while ($iter++==0 || $iter < $maxiter && $di/$chisq > $eps); [all …]
|
/dports/science/InsightToolkit/ITK-5.0.1/Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/tests/ |
H A D | test_functions.cxx | 73 const auto chisq = static_cast<double>(chisq_int); in test_functions() local 74 const double cdf = vnl_chi_squared_cumulative(chisq,n); in test_functions() 76 std::cout << "vnl_chi_squared_cumulative(" << chisq << ',' << n << ')'; in test_functions() 105 double chisq = 0; in test_functions() local 110 chisq += delta*delta/(hist1[i] + 10.0); in test_functions() 112 std::cout << "cdf(" << chisq << ",20) = " in test_functions() 113 << vnl_chi_squared_cumulative(chisq,20) in test_functions() 114 << " so P(same dist) = " << (1.0 - vnl_chi_squared_cumulative(chisq,20)) in test_functions()
|
/dports/misc/vxl/vxl-3.3.2/core/vnl/algo/tests/ |
H A D | test_functions.cxx | 231 const auto chisq = static_cast<double>(chisq_int); in test_functions() local 232 const double cdf = vnl_chi_squared_cumulative(chisq, n); in test_functions() 234 std::cout << "vnl_chi_squared_cumulative(" << chisq << ',' << n << ')'; in test_functions() 258 double chisq = 0; in test_functions() local 263 chisq += delta * delta / (hist1[i] + 10.0); in test_functions() 265 std::cout << "cdf(" << chisq << ",20) = " << vnl_chi_squared_cumulative(chisq, 20) in test_functions() 266 << " so P(same dist) = " << (1.0 - vnl_chi_squared_cumulative(chisq, 20)) << std::endl; in test_functions()
|
/dports/misc/elki/elki-release0.7.1-1166-gfb1fffdf3/elki-core-util/src/test/java/de/lmu/ifi/dbs/elki/utilities/random/ |
H A D | JavaRandomTest.java | 60 double chisq = computeChiSquared(counts, size); in testUniformity() local 61 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformity() 84 double chisq = computeChiSquared(counts, size); in testUniformityDouble() local 85 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityDouble() 100 double chisq = 0.; in computeChiSquared() local 103 chisq += v > 0 ? (v * v) / expect : 0.; in computeChiSquared() 105 return chisq; in computeChiSquared()
|
H A D | FastNonThreadsafeRandomTest.java | 53 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformity() local 54 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformity() 76 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformityRefined() local 77 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityRefined() 100 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformityDouble() local 101 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityDouble()
|
H A D | Xoroshiro128NonThreadsafeRandomTest.java | 53 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformity() local 54 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformity() 78 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformityDouble() local 79 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityDouble()
|
H A D | XorShift64NonThreadsafeRandomTest.java | 53 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformity() local 54 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformity() 78 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformityDouble() local 79 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityDouble()
|
H A D | XorShift1024NonThreadsafeRandomTest.java | 53 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformity() local 54 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformity() 77 double chisq = JavaRandomTest.computeChiSquared(counts, size); in testUniformityDouble() local 78 maxchisq = chisq > maxchisq ? chisq : maxchisq; in testUniformityDouble()
|
/dports/math/math77/MATH77/demo/ |
H A D | drdcdchi.f | 18 chisq = 0.5d0 20 30 if (chisq .le. 6) then 23 call dcdchi (chisq, nu, p, q(j), ierr) 25 print 20, chisq, q 26 chisq = chisq + 0.5d0
|
H A D | drscdchi.f | 18 chisq = 0.5e0 20 30 if (chisq .le. 6) then 23 call scdchi (chisq, nu, p, q(j), ierr) 25 print 20, chisq, q 26 chisq = chisq + 0.5e0
|
/dports/comms/wsjtz/wsjtx/lib/ |
H A D | polyfit.f90 | 10 chisq=0. 31 chisq=chisq+weight*yi**2 61 chisq=chisq-2*a(j)*sumy(j) 64 chisq=chisq+a(j)*a(k)*sumx(n) 68 chisqr=chisq/free
|
/dports/science/quantum-espresso/q-e-qe-6.7.0/PW/tools/ |
H A D | ev.f90 | 70 fac, emin, chisq, a variable 151 (npar,par,chisq) 185 REAL(DP), INTENT(out):: chisq local 230 chisq = 0.0d0 233 chisq = chisq + (etot(i)-efit(i))**2 235 chisq = chisq/npt 277 & d12.4)') chisq 280 & d12.4)') chisq 283 & d12.4)') chisq 286 & d12.4)') chisq [all …]
|
/dports/audio/praat/praat-6.2.03/dwtest/ |
H A D | test_Covariance.praat | 65 .chisq = extractNumber (.report$, "Chi-squared (bartlett) = ") 66 .chisq$ = fixed$ (.chisq, 2) 67 assert .chisq$ = "2.72" 76 .chisq = extractNumber (.report$, "chisq = ") 77 .chisq$ = fixed$ (.chisq, 2) 78 assert .chisq$ = "43.54"
|
/dports/math/gnuplot/gnuplot-5.4.1/src/ |
H A D | fit.c | 502 *chisq = tmp_chisq; in marquardt() 845 fit_show_brief(-2, chisq, chisq, a, lambda, STANDARD); in regress_finalize() 884 stdfit = sqrt(chisq / ndf); in regress_finalize() 1068 fit_progress(iter, chisq, chisq, a, lambda, STANDARD); in regress() 1070 fit_progress(iter, chisq, chisq, a, lambda, log_f); in regress() 1081 last_chisq = chisq; in regress() 1088 && (chisq != 0) in regress() 1091 ((last_chisq - chisq) > (epsilon * chisq + epsilon_abs)))); in regress() 1129 if (chisq > NEARLY_ZERO) { in show_results() 1130 Dblf2("rel. change during last iteration : %g\n\n", (chisq - last_chisq) / chisq); in show_results() [all …]
|
/dports/math/gnuplot-lite/gnuplot-5.4.1/src/ |
H A D | fit.c | 502 *chisq = tmp_chisq; in marquardt() 845 fit_show_brief(-2, chisq, chisq, a, lambda, STANDARD); in regress_finalize() 884 stdfit = sqrt(chisq / ndf); in regress_finalize() 1068 fit_progress(iter, chisq, chisq, a, lambda, STANDARD); in regress() 1070 fit_progress(iter, chisq, chisq, a, lambda, log_f); in regress() 1081 last_chisq = chisq; in regress() 1088 && (chisq != 0) in regress() 1091 ((last_chisq - chisq) > (epsilon * chisq + epsilon_abs)))); in regress() 1129 if (chisq > NEARLY_ZERO) { in show_results() 1130 Dblf2("rel. change during last iteration : %g\n\n", (chisq - last_chisq) / chisq); in show_results() [all …]
|
/dports/math/R-cran-psych/psych/R/ |
H A D | cortest.normal.R | 17 chisq <- E *(n1-3) functionVar 19 p.val <- pchisq(chisq,df,lower.tail=FALSE) 37 chisq <- E *(n-3) 39 p.val <- pchisq(chisq,df,lower.tail=FALSE) 41 result <- list(chi2=chisq,prob=p.val,df=df,Call=cl) 70 chisq <- E *(n-3) functionVar 72 p.val <- pchisq(chisq,df,lower.tail=FALSE) 74 result <- list(chi2=chisq,prob=p.val,df=df,Call=cl)
|
H A D | model.fit.R | 25 chisq <- object$criterion * (N - (!object$raw)) functionVar 30 NFI <- (chisqNull - chisq)/chisqNull 31 NNFI <- (chisqNull/dfNull - chisq/df)/(chisqNull/dfNull - 1) 32 L1 <- max(chisq - df, 0) 39 res <- optimize(function(lam) (tail - pchisq(chisq, df, ncp=lam))^2, interval=c(0, max)) 46 … res <- optimize(function(lam) (1 - tail - pchisq(chisq, df, ncp=lam))^2, interval=c(0, max)) 66 BIC <- chisq - df * log(N) 70 ans <- list(chisq=chisq, df=df, chisqNull=chisqNull, dfNull=dfNull, nameattr
|
/dports/finance/R-cran-plm/plm/inst/tests/ |
H A D | test_pgmm.Rout.save | 51 Sargan test: chisq(25) = 30.11247 (p-value = 0.22011) 89 Sargan test: chisq(5) = 11.62681 (p-value = 0.040275) 125 Sargan test: chisq(25) = 31.87899 (p-value = 0.16154) 160 Sargan test: chisq(25) = 31.87899 (p-value = 0.16154) 199 Sargan test: chisq(94) = 115.8547 (p-value = 0.062687) 236 Sargan test: chisq(94) = 104.872 (p-value = 0.20826) 270 Sargan test: chisq(25) = 30.11247 (p-value = 0.22011) 303 Sargan test: chisq(5) = 11.62681 (p-value = 0.040275) 335 Sargan test: chisq(25) = 31.87899 (p-value = 0.16154) 366 Sargan test: chisq(25) = 31.87899 (p-value = 0.16154) [all …]
|
H A D | test_phtest_Hausman_regression.Rout.save | 60 chisq = 2.3303669, df = 2, p-value = 0.3118654 68 chisq = 2.3303669, df = 2, p-value = 0.3118654 76 chisq = 2.3303669, df = 2, p-value = 0.3118654 85 chisq = 2.1313791, df = 2, p-value = 0.3444902 93 chisq = 2.1313791, df = 2, p-value = 0.3444902 101 chisq = 2.1313662, df = 2, p-value = 0.3444924 109 chisq = 2.1313662, df = 2, p-value = 0.3444924 118 chisq = 2.1313662, df = 2, p-value = 0.3444924 126 chisq = 8.2998366, df = 2, p-value = 0.0157657 157 chisq = 302.80375, df = 3, p-value < 2.2204e-16 [all …]
|
/dports/math/gnuplot-tex-extras/gnuplot-5.2.8/src/ |
H A D | fit.c | 506 *chisq = tmp_chisq; in marquardt() 851 fit_show_brief(-2, chisq, chisq, a, lambda, STANDARD); in regress_finalize() 890 stdfit = sqrt(chisq / ndf); in regress_finalize() 1074 fit_progress(iter, chisq, chisq, a, lambda, STANDARD); in regress() 1076 fit_progress(iter, chisq, chisq, a, lambda, log_f); in regress() 1087 last_chisq = chisq; in regress() 1094 && (chisq != 0) in regress() 1097 ((last_chisq - chisq) > (epsilon * chisq + epsilon_abs)))); in regress() 1135 if (chisq > NEARLY_ZERO) { in show_results() 1136 Dblf2("rel. change during last iteration : %g\n\n", (chisq - last_chisq) / chisq); in show_results() [all …]
|