Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::piecew...distribution(3) C++ Standard Libarystd::piecew...distribution(3)

NAME
       std::piecewise_constant_distribution::piecewise_constant_distribution -
       std::piecewise_constant_distribution::piecewise_constant_distribution

Synopsis
	  piecewise_constant_distribution();
       (1) (since C++11)
	  template< class InputIt1, class InputIt2 >

	  piecewise_constant_distribution(    InputIt1	  first_i,    InputIt1
       (2) (since C++11)
	  last_i,

					   InputIt2 first_w );
	  template< class UnaryOperation >

	  piecewise_constant_distribution(     std::initializer_list<RealType>
       (3) (since C++11)
	  ilist_i,

					   UnaryOperation fw );
	  template< class UnaryOperation >

	  piecewise_constant_distribution(	     std::size_t	   nw,
       (4) (since C++11)
					   RealType xmin, RealType xmax,

					   UnaryOperation fw );
	  explicit piecewise_constant_distribution(  const  param_type&	 param
       (5) (since C++11)
	  );

	  Constructs new piecewise constant distribution object.

	  1)  Constructs  a distribution object	with n = 1, 0 =	1, b0 =	0, and
       b1 = 1.
	  2) Constructs	a distribution object from iterators over the interval
       sequence
	  [first_i,  last_i)  and  a  matching	weight	sequence  starting  at
       first_w.
	  3)  Constructs  a  distribution object where the intervals are taken
       from the
	  initializer list ilist_i and the weights generated by	 the  function
       fw.
	  4)  Constructs  a distribution object	with the nw intervals distrib-
       uted uniformly over
	  [xmin, xmax] and the weights generated by the	function fw.
	  5) Constructs	a distribution object initialized with the  parameters
       param.

Parameters
	  first_i - iterator initialized to the	start of the interval sequence
	  last_i   -  iterator initialized to one-past-the-end of the interval
       sequence
	  first_w - iterator initialized to the	start of the density  (weight)
       sequence
	  ilist_i - initializer_list yielding the interval sequence
	  fw	  - double(double) function yielding the densities
	  nw	  - the	number of densities
	  xmin	  - the	lower bound of the interval sequence
	  xmax	  - the	upper bound of the interval sequence
	  param	  - the	distribution parameter set

http://cppreference.com		  2024.06.10	 std::piecew...distribution(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::piecewise_constant_distribution::piecewise_constant_distribution&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help