# std::piecewise_linear_distribution<RealType>::intervals, densities

> C++ Atlas: `cppatlas.com/w/cpp/numeric/random/piecewise_linear_distribution/params` | Source: https://en.cppreference.com/w/cpp/numeric/random/piecewise_linear_distribution/params | Domain: Numerics | Standards: C++11

Returns the distribution parameters.

## Official Specification Summary (cppreference)

```cpp
std::vector<RealType> intervals() const; // (1) (since C++11)
std::vector<RealType> densities() const; // (2) (since C++11)
```

Returns the distribution parameters.

1) Returns the list of boundaries of the intervals.

2) Returns the list of probability densities at the boundaries of the intervals.

### Parameters

(none)

### Return value

The distribution parameters:

1) The list of boundaries of the intervals.

2) The list of probability densities at the boundaries of the intervals.

### Complexity

Linear in the number of intervals in this object.

---
Attribution: content from https://en.cppreference.com/w/cpp/numeric/random/piecewise_linear_distribution/params (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.