dip::Distribution::ConstSample class

One unmutable sample of a distribution, see dip::Distribution::Sample for details.

Constructors, destructors, assignment and conversion operators

ConstSample() deleted
Not default constructable
ConstSample(dip::Distribution::ConstSample&& ) defaulted
Move constructor
ConstSample(dip::Distribution::ConstSample const& ) defaulted
Copy constructor, references the same data. Careful!
auto operator=(dip::Distribution::ConstSample&& other) -> dip::Distribution::ConstSample& deleted
Not assignable
auto operator=(dip::Distribution::ConstSample const& other) -> dip::Distribution::ConstSample& deleted
Not assignable

Functions

auto X() const -> dip::Distribution::ValueType
Returns sample’s x value.
auto Y(dip::uint index = 0) const -> dip::Distribution::ValueType
Returns sample’s (index+1)-th y value.
auto Y(dip::uint row, dip::uint col) const -> dip::Distribution::ValueType
Returns sample’s y value at (row,col).

Operators

auto operator dfloat() const -> dip::dfloat
Implicitly casts to sample’s first y value.