MCPcopy Create free account
hub / github.com/boostorg/histogram / index

Method index

include/boost/histogram/axis/types.hpp:421–424  ·  view source on GitHub ↗

Returns the bin index for the passed argument.

Source from the content-addressed store, hash-verified

419
420 /// Returns the bin index for the passed argument.
421 int index(value_type x) const noexcept {
422 const int z = x - min_;
423 return z >= 0 ? (z > base_type::size() ? base_type::size() : z) : -1;
424 }
425
426 /// Returns lower edge of the integral bin.
427 value_type lower(int i) const noexcept {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected