template<classRealType=double> classpiecewise_constant_distribution; (since C++11) std::piecewise_constant_distributionproduces random floating-point numbers, which are uniformly distributed within each of the several subintervals[b i, b i+1), each with its own weightw ...
piecewise_linear_distribution 在标头<random>定义 template<classRealType=double> classpiecewise_linear_distribution; (C++11 起) std::piecewise_linear_distribution产生随机浮点数,分布服在数个子区间[bi,bi+1)[bi,bi+1)的每一者上的线性概率密度函数。分布满足在每个区间边界上的概率密度恰为预定义值pipi。
operators (std::negative_binomial_distribution) operators (std::normal_distribution) operators (std::normal_distribution) operators (std::piecewise_constant_distribution) operators (std::piecewise_constant_distribution) operators (std::piecewise_linear_distribution) operators (std::piecewise_linear_distributio...
std::piecewise_constant_distribution<RealType>:: param_type param()const; (1)(C++11 起) voidparam(constparam_type¶ms); (2)(C++11 起) 管理关联的参数集。 1) 返回关联的参数集。 2) 设置关联的参数集为params。 参数 params-关联参数集的新内容...
std::piecewise_constant_distribution::reset std::piecewise_constant_distribution::reset void reset(); (since C++11) 重置分发对象的内部状态。调用此函数后,下一次调用operator()在分发对象上,将不依赖于以前对operator()... 参数 %280%29 返回值 %280%29 复杂性 常量。 代码语言:txt 复制 © ...
piecewise_constant_distribution<> (C++11 起)piecewise_construct (C++11 起)piecewise_construct_t (C++11 起)piecewise_linear_distribution<> (C++11 起)▶ placeholders (C++11 起)plus<>▶ pmr (C++17 起)pointer_traits<> (C++11 起)poisson_distribution<> (C++11 起)polymorphic_allocator<> (C++...
piecewise_constant_distribution (C++11) piecewise_linear_distribution (C++11) Seed Sequences seed_seq (C++11) C library rand srand RAND_MAX std::cauchy_distribution Member functions cauchy_distribution::cauchy_distribution (C++11) cauchy_distribution::reset (C++11) Generation cauchy_distribution::opera...
SYMBOL(piecewise_constant_distribution, std::, <random>) SYMBOL(piecewise_construct_t, std::, <utility>) SYMBOL(piecewise_linear_distribution, std::, <random>) SYMBOL(plus, std::, <functional>) SYMBOL(pointer_safety, std::, <memory>) ...
piecewise_constant_distribution<> (C++11 起) piecewise_construct (C++11 起) piecewise_construct_t (C++11 起) piecewise_linear_distribution<> (C++11 起) ▶ placeholders (C++11 起) plus<> ▶ pmr (C++17 起) pointer_traits<> (C++11 起) poisson_distribution<> (C++11 起) polar<>() pop...
x_new = np.array([0.25,0.55,0.75])# some arbitrary distributiony_old =1.+ np.sin(x_old[:-1]*np.pi) / np.ediff1d(x_old) y_old = unp.uarray(y_old,0.1*y_old*uniform((m,)))# rebiny_new = rebin.rebin(x_old, y_old, x_new, interp_kind='piecewise_constant')# compute ...