/dports/science/py-scipy/scipy-1.7.1/scipy/stats/tests/ |
H A D | common_tests.py | 43 m1 = distfn.moment(1, *arg) 44 m2 = distfn.moment(2, *arg) 93 ent = distfn.entropy(*arg) 121 x = distfn.support(*args) 152 if distfn.shapes: 208 distfn.random_state = 2 230 x = x[(distfn.a < x) & (x < distfn.b)] 240 for meth in [distfn.ppf, distfn.isf]: 259 x = x[(distfn.a < x) & (x < distfn.b)] 261 pdf, cdf, sf = distfn.pdf(x, *arg), distfn.cdf(x, *arg), distfn.sf(x, *arg) [all …]
|
H A D | test_discrete_basic.py | 36 distfn = distname 54 meths = [distfn.pmf, distfn.logpmf, distfn.cdf, distfn.logcdf, 79 distfn = distname 139 distfn = dist 147 [distfn.ppf(0.0, *args, loc=loc), distfn.ppf(1.0, *args, loc=loc)] 153 npt.assert_array_equal(distfn.ppf(distfn.cdf(supp, *arg), *arg), 155 npt.assert_array_equal(distfn.ppf(distfn.cdf(supp, *arg) - 1e-8, *arg), 161 npt.assert_array_equal(distfn.ppf(distfn.cdf(supp1, *arg) + 1e-8, *arg), 168 index = distfn.xk 189 npt.assert_allclose(distfn.sf(supp, *arg), 1. - distfn.cdf(supp, *arg), [all …]
|
H A D | test_continuous_basic.py | 142 distfn = distname 149 m, v = distfn.stats(*arg) 170 meths = [distfn.pdf, distfn.logpdf, distfn.cdf, distfn.logcdf, 171 distfn.logsf] 184 check_pickling(distfn, arg) 191 if distfn.numargs == 0: 230 distfn = distname 279 distfn = distname 500 npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, *arg), *arg), 506 npt.assert_almost_equal(distfn.sf(distfn.isf([0.1, 0.5, 0.9], *arg), *arg), [all …]
|
H A D | test_fit.py | 91 distfn = getattr(stats, distname) 95 np.full(distfn.numargs+2, thresh_min)]), 103 rvs = distfn.rvs(size=fit_size, *arg) 104 est = distfn.fit(rvs, method=method) # start with default values 121 raise AssertionError('fit not very good in %s\n' % distfn.name + txt)
|
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/sandbox/distributions/ |
H A D | estimators.py | 112 mom2s = distfn.stats(alpha, 0.,scale) 134 mom2s = distfn.stats(alpha, 0.,scale) 215 cdfdiff = distfn.cdf(xq, *params) - pq 224 if hasattr(distfn, '_fitstart'): 225 start = distfn._fitstart(x) 450 distfn = stats.gamma variable 498 distfn = stats.t variable 501 trvs = distfn.rvs(5, 0, 1, size=nobs) 503 mom2th = distfn.stats(*paramsdgp) 509 print(distfn.fit(trvs)) [all …]
|
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/sandbox/distributions/examples/ |
H A D | matchdist.py | 24 def plothist(x,distfn, args, loc, scale, right=1): 39 yt = distfn.pdf( bins, loc=loc, scale=scale, *args) 122 distfn = getattr(stats,distname) 123 if hasattr(distfn,'_pdf'): 124 if np.isinf(distfn.a): 126 elif distfn.a == 0: 130 if np.isinf(distfn.b): 132 elif distfn.b == 0: 171 distfn = getattr(stats,distname) 200 par_est = tuple(distfn.fit(rvs,loc=0,scale=1)) [all …]
|
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/stats/ |
H A D | gof.py | 214 distsupport = lrange(max(distfn.a, -1000), min(distfn.b, 1000) + 1) 216 distsupp = [max(distfn.a, -1000)] 226 if distsupp[-1] < distfn.b: 227 distsupp.append(distfn.b) 234 histsupp[0] = distfn.a 239 cdfs = distfn.cdf(distsupp,*arg) 300 distsupport = lrange(max(distfn.a, -1000), min(distfn.b, 1000) + 1) 312 if distsupp[-1] < distfn.b: 313 distsupp.append(distfn.b) 320 histsupp[0] = distfn.a [all …]
|
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/distributions/tests/ |
H A D | test_edgeworth.py | 148 def check_pdf(distfn, arg, msg): argument 150 median = distfn.ppf(0.5, *arg) 152 pdfv = distfn.pdf(median, *arg) 157 pdfv = distfn.pdf(median, *arg) 158 cdfdiff = (distfn.cdf(median + eps, *arg) - 166 def check_cdf_ppf(distfn, arg, msg): argument 168 npt.assert_almost_equal(distfn.cdf(distfn.ppf(values, *arg), *arg), 172 def check_cdf_sf(distfn, arg, msg): argument 174 npt.assert_almost_equal(distfn.cdf(values, *arg), 175 1. - distfn.sf(values, *arg), [all …]
|
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/sandbox/distributions/tests/ |
H A D | _est_fit.py | 35 distfn = getattr(stats, distname) 36 rvs = distfn.rvs(size=n_repl1,*arg) 37 est = distfn.fit(rvs) #,*arg) # start with default values 44 np.ones(distfn.numargs+2)*thresh_min]),0) 54 rvs = np.concatenate([rvs,distfn.rvs(size=n_repl2-n_repl1,*arg)]) 55 est = distfn.fit(rvs) #,*arg) 62 raise AssertionError('fit not very good in %s\n' % distfn.name + txt)
|
H A D | check_moments.py | 64 distfn = getattr(stats, distname) 72 m,v,s,k = distfn.stats(*distargs, **dict(moments='mvsk')) 79 expect = distfn.expect 80 expect = lambda *args, **kwds : expect_v2(distfn, *args, **kwds)
|
/dports/math/py-fastcluster/fastcluster-1.2.4/src/ |
H A D | fastcluster_python.cpp | 531 distfn = &python_dissimilarity::cosine; in python_dissimilarity() 544 distfn = &python_dissimilarity::hamming; in python_dissimilarity() 549 distfn = &python_dissimilarity::jaccard; in python_dissimilarity() 552 distfn = &python_dissimilarity::canberra; in python_dissimilarity() 588 distfn = &python_dissimilarity::yule; in python_dissimilarity() 596 distfn = &python_dissimilarity::dice; in python_dissimilarity() 624 distfn = &python_dissimilarity::user; in python_dissimilarity() 655 return (this->*distfn)(i,j); in operator ()() 818 distfn = &python_dissimilarity::minkowski; in set_minkowski() 832 distfn = &python_dissimilarity::cityblock; in set_cityblock() [all …]
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | distribute.c | 260 void (*distfn)(struct distribute_ctx *, const char *, variable 272 distfn(ctx, ifname, type, argv[1 + prefix]->arg); 295 void (*distfn)(struct distribute_ctx *, const char *, variable 306 distfn(ctx, ifname, type, argv[2 + prefix]->arg); 330 int (*distfn)(struct distribute_ctx *, const char *, variable 340 int ret = distfn(ctx, ifname, type, argv[2 + prefix]->arg); 371 int (*distfn)(struct distribute_ctx *, const char *, variable 381 int ret = distfn(ctx, ifname, type, argv[3 + prefix]->arg);
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | distribute.c | 260 void (*distfn)(struct distribute_ctx *, const char *, variable 272 distfn(ctx, ifname, type, argv[1 + prefix]->arg); 295 void (*distfn)(struct distribute_ctx *, const char *, variable 306 distfn(ctx, ifname, type, argv[2 + prefix]->arg); 330 int (*distfn)(struct distribute_ctx *, const char *, variable 340 int ret = distfn(ctx, ifname, type, argv[2 + prefix]->arg); 371 int (*distfn)(struct distribute_ctx *, const char *, variable 381 int ret = distfn(ctx, ifname, type, argv[3 + prefix]->arg);
|
/dports/lang/gcc10/gcc-10.3.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 119 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 147 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 170 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/avr-gcc/gcc-10.2.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/lang/gcc11/gcc-11.2.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/lang/gcc9-devel/gcc-9-20211007/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/devel/riscv32-unknown-elf-gcc/gcc-8.4.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|
/dports/misc/cxx_atomics_pic/gcc-11.2.0/gcc/testsuite/gcc.dg/ipa/ |
H A D | pr57539.c | 92 typedef int (*distfn) (box *, box *); typedef 121 mapGraphs (graph_t * g, graph_t * cg, distfn dist) in mapGraphs() 149 mkNConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkNConstraintG() 172 mkConstraintG (graph_t * g, Dt_t * list, intersectfn intersect, distfn dist) in mkConstraintG()
|