/dports/math/xtensor/xtensor-0.24.0/include/xtensor/ |
H A D | xhistogram.hpp | 40 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.py | 241 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.py | 188 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 D | test_extended_xhistogram.cppy | 25 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 D | test_extended_xhistogram.cpp | 93 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 D | test_xhistogram.cpp | 91 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 D | histograms.py | 383 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 D | plot.py | 12 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 D | khatplot.py | 132 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 D | ppcplot.py | 114 _, 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 D | multiple_histograms_side_by_side.py | 47 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 D | multiple_histograms_side_by_side.py | 47 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 D | multiple_histograms_side_by_side.py | 47 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 D | ascent_tutorial_python_extract_braid_histogram.py | 31 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 D | ascent_tutorial_python_extract_braid_histogram.py | 31 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 D | ascent_tutorial_python_extract_braid_histogram.py | 31 hist, bin_edges = np.histogram(e_vals, bins = bins) variable 38 print(bin_edges) 44 hist_results["bin_edges"] = bin_edges
|
H A D | ascent_extract_example5.py | 56 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 D | khatplot.py | 153 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 D | ppcplot.py | 141 _, 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 D | core.py | 248 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 D | histogram-module.inc | 18 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 D | histogram.rst | 45 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 D | demo - histogram.ipynb | 63 "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.py | 136 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 D | ascent_python_extract_histogram_demo.py | 40 hist, bin_edges = np.histogram(e_vals[0], bins = bins[0]) variable 55 print(bin_edges)
|