Home
last modified time | relevance | path

Searched refs:bin_edges (Results 1 – 25 of 57) sorted by relevance

123

/dports/math/xtensor/xtensor-0.24.0/include/xtensor/
H A Dxhistogram.hpp40 XTENSOR_ASSERT(std::is_sorted(bin_edges.cbegin(), bin_edges.cend())); in digitize()
42 XTENSOR_ASSERT(xt::amax(data)[0] <= bin_edges[bin_edges.size() - 1]); in digitize()
60 XTENSOR_ASSERT(std::is_sorted(bin_edges.cbegin(), bin_edges.cend())); in histogram_imp()
122 prob[i] /= (static_cast<R>(bin_edges[i + 1] - bin_edges[i]) * n); in histogram_imp()
320 return bin_edges; in histogram_bin_edges()
328 return bin_edges; in histogram_bin_edges()
344 return bin_edges; in histogram_bin_edges()
368 bin_edges[0] = left; in histogram_bin_edges()
369 bin_edges[bins] = right; in histogram_bin_edges()
384 return bin_edges; in histogram_bin_edges()
[all …]
/dports/math/py-seaborn/seaborn-0.11.0/seaborn/
H A D_statistics.py241 self.bin_edges = None
259 return bin_edges
271 bin_edges = []
307 bin_edges = tuple(bin_edges)
310 self.bin_edges = bin_edges
312 return bin_edges
316 bin_edges = self.bin_edges
317 if bin_edges is None:
342 return hist, bin_edges
346 bin_edges = self.bin_edges
[all …]
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/preprocessing/
H A D_discretization.py188 bin_edges = np.zeros(n_features, dtype=object)
198 bin_edges[jj] = np.array([-np.inf, np.inf])
222 bin_edges[jj] = (centers[1:] + centers[:-1]) * 0.5
223 bin_edges[jj] = np.r_[col_min, bin_edges[jj], col_max]
228 bin_edges[jj] = bin_edges[jj][mask]
229 if len(bin_edges[jj]) - 1 != n_bins[jj]:
235 n_bins[jj] = len(bin_edges[jj]) - 1
237 self.bin_edges_ = bin_edges
312 bin_edges = self.bin_edges_
370 bin_edges = self.bin_edges_[jj]
[all …]
/dports/math/xtensor/xtensor-0.24.0/test/files/cppy_source/
H A Dtest_extended_xhistogram.cppy25 count, bin_edges = np.histogram(a, 50)
37 auto bin_edges = xt::histogram_bin_edges(py_a, std::size_t(50));
39 auto count = xt::histogram(py_a, bin_edges);
41 auto prob = xt::histogram(py_a, bin_edges, true);
43 EXPECT_EQ(xt::cast<double>(bin_edges), py_bin_edges);
54 count, bin_edges = np.histogram(a, 30, (10, 40))
63 auto bin_edges = xt::histogram_bin_edges(py_a, 10, 40, std::size_t(30));
65 auto count = xt::histogram(py_a, bin_edges);
67 EXPECT_EQ(xt::cast<double>(bin_edges), py_bin_edges);
/dports/math/xtensor/xtensor-0.24.0/test/
H A Dtest_extended_xhistogram.cpp93 auto bin_edges = xt::histogram_bin_edges(py_a, std::size_t(50)); in TEST() local
95 auto count = xt::histogram(py_a, bin_edges); in TEST()
97 auto prob = xt::histogram(py_a, bin_edges, true); in TEST()
99 EXPECT_EQ(xt::cast<double>(bin_edges), py_bin_edges); in TEST()
165 auto bin_edges = xt::histogram_bin_edges(py_a, 10, 40, std::size_t(30)); in TEST() local
167 auto count = xt::histogram(py_a, bin_edges); in TEST()
169 EXPECT_EQ(xt::cast<double>(bin_edges), py_bin_edges); in TEST()
H A Dtest_xhistogram.cpp91 xt::xtensor<size_t, 1> bin_edges = {0, 10, 20, 30}; in TEST() local
95 EXPECT_EQ(xt::digitize(data, bin_edges), res_left); in TEST()
96 EXPECT_EQ(xt::digitize(data, bin_edges, false), res_left); in TEST()
97 EXPECT_EQ(xt::digitize(data, bin_edges, true), res_right); in TEST()
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/
H A Dhistograms.py383 bin_edges = None
429 bin_edges = np.asarray(bins)
430 if np.any(bin_edges[:-1] > bin_edges[1:]):
446 bin_edges = np.linspace(
451 return bin_edges, None
669 return bin_edges
874 cum_n = np.zeros(bin_edges.shape, ntype)
904 db = np.array(np.diff(bin_edges), float)
905 return n/db/n.sum(), bin_edges
920 return n/(n*db).sum(), bin_edges
[all …]
/dports/multimedia/vmaf/vmaf-2.3.0/python/vmaf/tools/
H A Dplot.py12 counts, bin_edges = np.histogram(x, bins=num_bins)
15 bin_edges = bin_edges[1:] # make size
16 return cdf, bin_edges
20 pdf, bin_edges = np.histogram(data, density=True, bins=num_bins)
21 bin_centres = (bin_edges[:-1] + bin_edges[1:])/2
/dports/math/py-arviz/arviz-0.11.4/arviz/plots/backends/bokeh/
H A Dkhatplot.py132 bin_edges = np.array([ymin, 0.5, 0.7, 1, ymax])
133 bin_edges = bin_edges[(bin_edges >= ymin) & (bin_edges <= ymax)]
134 hist, _, _ = histogram(khats, bin_edges)
138 y=[np.mean(bin_edges[idx : idx + 2])],
H A Dppcplot.py114 _, hist, bin_edges = histogram(vals, bins=bins)
117 pp_xs.append(bin_edges)
145 _, hist, bin_edges = histogram(obs_vals, bins=bins)
148 bin_edges,
179 _, hist, bin_edges = histogram(vals, bins=bins)
182 bin_edges,
259 _, hist, bin_edges = histogram(vals, bins=bins)
262 bin_edges,
/dports/math/py-matplotlib2/matplotlib-2.2.4/examples/statistics/
H A Dmultiple_histograms_side_by_side.py47 bin_edges = np.linspace(hist_range[0], hist_range[1], number_of_bins + 1) variable
48 centers = 0.5 * (bin_edges + np.roll(bin_edges, 1))[:-1]
49 heights = np.diff(bin_edges)
/dports/math/py-matplotlib2/matplotlib-2.2.4/lib/mpl_examples/statistics/
H A Dmultiple_histograms_side_by_side.py47 bin_edges = np.linspace(hist_range[0], hist_range[1], number_of_bins + 1) variable
48 centers = 0.5 * (bin_edges + np.roll(bin_edges, 1))[:-1]
49 heights = np.diff(bin_edges)
/dports/math/py-matplotlib/matplotlib-3.4.3/examples/statistics/
H A Dmultiple_histograms_side_by_side.py47 bin_edges = np.linspace(hist_range[0], hist_range[1], number_of_bins + 1) variable
48 centers = 0.5 * (bin_edges + np.roll(bin_edges, 1))[:-1]
49 heights = np.diff(bin_edges)
/dports/science/ascent/ascent-0.7.1-66-gbcf2742a/src/examples/tutorial/ascent_intro/notebooks/
H A Dascent_tutorial_python_extract_braid_histogram.py31 hist, bin_edges = np.histogram(e_vals, bins = bins) variable
38 print(bin_edges)
44 hist_results["bin_edges"] = bin_edges
/dports/science/ascent/ascent-0.7.1-66-gbcf2742a/src/examples/tutorial/ascent_intro/cpp/
H A Dascent_tutorial_python_extract_braid_histogram.py31 hist, bin_edges = np.histogram(e_vals, bins = bins) variable
38 print(bin_edges)
44 hist_results["bin_edges"] = bin_edges
/dports/science/ascent/ascent-0.7.1-66-gbcf2742a/src/examples/tutorial/ascent_intro/python/
H A Dascent_tutorial_python_extract_braid_histogram.py31 hist, bin_edges = np.histogram(e_vals, bins = bins) variable
38 print(bin_edges)
44 hist_results["bin_edges"] = bin_edges
H A Dascent_extract_example5.py56 hist, bin_edges = np.histogram(e_vals, bins = bins) variable
63 print(bin_edges)
69 hist_results["bin_edges"] = bin_edges
/dports/math/py-arviz/arviz-0.11.4/arviz/plots/backends/matplotlib/
H A Dkhatplot.py153 bin_edges = np.array([ymin, 0.5, 0.7, 1, ymax])
154 bin_edges = bin_edges[(bin_edges >= ymin) & (bin_edges <= ymax)]
155 hist, _, _ = histogram(khats, bin_edges)
159 np.mean(bin_edges[idx : idx + 2]),
H A Dppcplot.py141 _, hist, bin_edges = histogram(obs_vals, bins=bins)
144 bin_edges,
163 _, hist, bin_edges = histogram(vals, bins=bins)
166 pp_xs.append(bin_edges)
204 _, hist, bin_edges = histogram(vals, bins=bins)
207 bin_edges,
285 _, hist, bin_edges = histogram(vals, bins=bins)
288 bin_edges,
/dports/astro/py-astropy/astropy-5.0/astropy/uncertainty/
H A Dcore.py248 bin_edges = []
252 bin_edges.append(bin_edge)
256 bin_edges = np.array(bin_edges)
257 be_shape = self.shape + (bin_edges.size//self.size,)
258 return nhists.reshape(nh_shape), bin_edges.reshape(be_shape)
/dports/devel/libslang2/slang-2.3.2/modules/
H A Dhistogram-module.inc18 BIN_EDGES_TYPE *bin_edges, SLuindex_Type nbins,
28 if (-1 == check_grid (bin_edges, nbins))
32 xlo = (double) bin_edges[0];
33 xhi = (double) bin_edges[nbins_m1];
61 if ((bin_edges[j] > val) || (val >= bin_edges[j+1]))
62 j = BINARY_SEARCH (val, bin_edges, nbins);
/dports/math/xtensor/xtensor-0.24.0/docs/source/
H A Dhistogram.rst45 xt::xtensor<double,1> bin_edges = xt::histogram_bin_edges(data, std::size_t(2));
65 …xt::xtensor<double,1> bin_edges = xt::histogram_bin_edges(data, std::size_t(2), xt::histogram_algo…
67 xt::xtensor<double,1> prob = xt::histogram(data, bin_edges, true);
69 std::cout << bin_edges << std::endl;
/dports/science/ascent/ascent-0.7.1-66-gbcf2742a/src/ascent/python/ascent_jupyter_bridge/notebooks/
H A Ddemo - histogram.ipynb63 "hist, bin_edges = np.histogram(e_vals, bins = bins)\n",
78 " print(bin_edges)\n",
98 "plt.hist(bin_edges[2:-1], weights=hist_all[2:], bins=bin_edges[2:]) \n",
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/discrete/
H A D_diagnostics_count.py136 def test_chisquare_prob(results, probs, bin_edges=None, method=None): argument
180 if bin_edges is not None:
181 d_ind_bins, k_bins = _combine_bins(bin_edges, d_ind)
182 probs_bins, k_bins = _combine_bins(bin_edges, probs)
/dports/science/ascent/ascent-0.7.1-66-gbcf2742a/src/examples/tutorial/cloverleaf_demos/python_extract/
H A Dascent_python_extract_histogram_demo.py40 hist, bin_edges = np.histogram(e_vals[0], bins = bins[0]) variable
55 print(bin_edges)

123