---
name: "std::piecewise_constant_distribution::param_type"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::piecewise_constant_distribution::param_type"
---

# std::piecewise\_constant\_distribution::param\_type(3)

## NAME

std::piecewise\_constant\_distribution\< \_RealType \>::param\_type

## SYNOPSIS

\#include \<random\>

### Public Types

typedef piecewise\_constant\_distribution\< \_RealType \> **distribution\_type**\

### Public Member Functions

template\<typename \_InputIteratorB, typename \_InputIteratorW\> **param\_type** (\_InputIteratorB \_\_bfirst, \_InputIteratorB \_\_bend, \_InputIteratorW \_\_wbegin)\
 **param\_type** (const param\_type &)=default\
 template\<typename \_Func\> **param\_type** (**initializer\_list**\< \_RealType \> \_\_bi, \_Func \_\_fw)\
 template\<typename \_Func\> **param\_type** (size\_t \_\_nw, \_RealType \_\_xmin, \_RealType \_\_xmax, \_Func \_\_fw)\
 **std::vector**\< double \> **densities** () const\
 **std::vector**\< \_RealType \> **intervals** () const\
 param\_type & **operator=** (const param\_type &)=default\

### Friends

bool **operator==** (const param\_type &\_\_p1, const param\_type &\_\_p2)\
 class **piecewise\_constant\_distribution\< \_RealType \>**\

## Detailed Description

### template\<typename \_RealType = double\>

struct std::piecewise\_constant\_distribution\< \_RealType \>::param\_type"Parameter type.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
