The OpenD Programming Language

PiecewiseConstantVariable.this

PiecewiseConstantVariable constructor computes cumulative density points in place without memory allocation.

struct PiecewiseConstantVariable(T, W = T)
this

Parameters

intervals T[]

strictly increasing sequence of interval bounds.

weights W[]

density points

cumulative bool

optional flag indicates if weights are already cumulative

Meta