---
name: "std::piecewise_constant_distribution_param_type"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::piecewise_constant_distribution_param_type"
---

# std::piecewise\_constant\_distribution\_param\_type(3cxx)

## 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**)\
 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.
