Template Class range

Inheritance Relationships

Derived Types

Class Documentation

template<class R>
class ioh::logger::range

Interface for classes that computes indices from ranges.

The idea is to input [min,max] && the discretization size && to compute the position in [0,size] of any value in [min,max].

Used in ecdf.

Subclassed by ioh::logger::range_linear< R >, ioh::logger::range_log< R >

Public Functions

range(R amin, R amax, size_t asize)
R min() const
R max() const
size_t size() const
R length() const
R step() const
size_t index(double x) = 0

Main interface.

Protected Attributes

R _min
R _max
size_t _size