BinnedStorage.h
Go to the documentation of this file.
159 BinnedStorage(std::initializer_list<AxisT>&&... edges) : _binning(std::vector<AxisT>{edges}...) {
259 std::vector<size_t> calcIndicesToSkip(const bool includeOverflows, const bool includeMaskedBins) const noexcept {
401 noexcept -> std::enable_if_t<MetaUtils::is_detected_v<MetaUtils::operatorTraits::addition_assignment_t, BinContentT>, RetT>
BinnedStorage, stores the bins and coordinates access to them. Definition BinnedStorage.h:114 void maskBin(const size_t indexToMask, const bool status=true) noexcept Mask a bin at a given index. Definition BinnedStorage.h:361 BinnedStorage(std::initializer_list< AxisT > &&... edges) Constructs binning from an adapter and Rvalue initializer lists of axes' edges. Definition BinnedStorage.h:159 void maskBinAt(typename BinningT::EdgeTypesTuple &&coords, const bool status=true) noexcept Mask a bin at a given set of corrdinates. Definition BinnedStorage.h:371 void maskBins(const std::vector< size_t > &indicesToMask, const bool status=true) noexcept Mask a range of bins. Definition BinnedStorage.h:356 size_t numBinsAt(const size_t axisN, const bool includeOverflows=false) const noexcept Number of bins in the BinnedStorage. Definition BinnedStorage.h:339 const BinsVecWrapper< const BinsVecT > bins(const bool includeOverflows=false, const bool includeMaskedBins=false) const noexcept Const version. Definition BinnedStorage.h:309 auto mkBinnedSlices(Func &&how2add, const bool includeOverflows=false) const Split this BinnedStorage into a vector of BinnedStorages along axisN. Definition BinnedStorage.h:452 void set(const size_t binIdx, const BinContentT &content) noexcept Sets the bin corresponding to binIndex with content. Definition BinnedStorage.h:253 size_t numBins(const bool includeOverflows=false, const bool includeMaskedBins=false) const noexcept Number of bins in the BinnedStorage. Definition BinnedStorage.h:331 Binning< std::decay_t< decltype(std::declval< Axis< AxisT > >())>... > BinningT Convenience alias to be used in constructor. Definition BinnedStorage.h:118 void set(typename BinningT::EdgeTypesTuple &&coords, const BinContentT &content) noexcept Sets the bin corresponding to coords with content. Definition BinnedStorage.h:240 BinnedStorage(const BinningT &binning) Constructs BinnedStorage from Binning. Definition BinnedStorage.h:139 bool operator==(const BinnedStorage &other) const noexcept Compares BinnedStorages for equality, e.g. dimensions of underlying binnings and all axes edges are e... Definition BinnedStorage.h:502 void set(typename BinningT::EdgeTypesTuple &&coords, BinContentT &&content) noexcept Sets the bin corresponding to coords with an rvalue content. Definition BinnedStorage.h:234 BinnedStorage(const Axis< AxisT > &... axes) Constructs binning from an adapter and a sequence of axes. Definition BinnedStorage.h:164 BinnedStorage(std::vector< AxisT > &&... edges) Constructs binning from an adapter and Rvalue vectors of axes' edges. Definition BinnedStorage.h:154 const BinT & bin(const std::array< size_t, sizeof...(AxisT)> &idxLocal) const noexcept Bin access using local bin indices. Definition BinnedStorage.h:215 BinnedStorage(const std::vector< AxisT > &... edges) Constructs binning from an adapter and vectors of axes' edges. Definition BinnedStorage.h:149 BinnedStorage & operator=(const BinnedStorage &other) noexcept Copy assignment. Definition BinnedStorage.h:481 bool isMasked(const size_t binIndex) const noexcept Definition BinnedStorage.h:375 BinnedStorage(BinningT &&binning) Constructs BinnedStorage from Binning. Rvalue. Definition BinnedStorage.h:144 const BinT & binAt(typename BinningT::EdgeTypesTuple &&coords) const noexcept Returns reference to the bin at coordinates (const version). Definition BinnedStorage.h:226 void maskSlice(const size_t dim, const size_t idx, const bool status=true) Mask a slice of the binning at local bin index idx along axis dimesnion dim. Definition BinnedStorage.h:366 Bin< sizeof...(AxisT), BinContentT, BinningT > BinT Definition BinnedStorage.h:119 BinnedStorage(Axis< AxisT > &&... axes) Constructs binning from an adapter and a sequence of Rvalue axes. Definition BinnedStorage.h:169 BinsVecWrapper< BinsVecT > bins(const bool includeOverflows=false, const bool includeMaskedBins=false) noexcept Returns bins vector wrapper, which skips masked elements when iterated over. Definition BinnedStorage.h:298 auto mergeBins(std::decay_t< decltype(AxisNs, std::declval< std::pair< size_t, size_t > >())>... mergeRanges) noexcept -> std::enable_if_t< MetaUtils::is_detected_v< MetaUtils::operatorTraits::addition_assignment_t, BinContentT >, RetT > Merge bins from A to B at G axis. Definition BinnedStorage.h:399 void fillBins(const BinsVecT &bins) noexcept Definition BinnedStorage.h:544 size_t dim() const noexcept Total dimension of the object ( = number of axes + content) Definition BinnedStorage.h:189 BinT & bin(const std::array< size_t, sizeof...(AxisT)> &idxLocal) noexcept Bin access using local bin indices. Definition BinnedStorage.h:210 const BinningT & binning() const noexcept Returns dimension underlying binning object reference. Definition BinnedStorage.h:321 std::vector< size_t > maskedBins() const noexcept Definition BinnedStorage.h:379 BinT & binAt(typename BinningT::EdgeTypesTuple &&coords) noexcept Returns reference to the bin at coordinates. Definition BinnedStorage.h:220 bool isVisible(const size_t binIndex) const noexcept Definition BinnedStorage.h:383 std::vector< size_t > calcIndicesToSkip(const bool includeOverflows, const bool includeMaskedBins) const noexcept Calculates indices of bins which are marked or located in the overflow. Definition BinnedStorage.h:259 void set(const size_t binIdx, BinContentT &&content) noexcept Sets the bin corresponding to binIndex with an rvalue content. Definition BinnedStorage.h:248 bool operator!=(const BinnedStorage &other) const noexcept Compares BinnedStorages for inequality. Definition BinnedStorage.h:509 std::integral_constant< size_t, sizeof...(AxisT)> BinDimension Definition BinnedStorage.h:127 Definition Binning.h:48 decltype(std::tuple_cat(std::declval< std::tuple< typename Axes::EdgeT > >()...)) EdgeTypesTuple Definition Binning.h:85 std::vector< size_t > sliceIndices(std::vector< std::pair< size_t, std::vector< size_t > > >) const noexcept Calculates indices of bins located in the specified slices. Definition Binning.h:574 Definition BinnedStorage.h:52 myIt(VecT &bins, const std::vector< size_t > &hiddenBins) Definition BinnedStorage.h:59 std::iterator_traits< IterT >::reference operator*() noexcept Definition BinnedStorage.h:101 bool operator!=(const myIt &other) const noexcept Definition BinnedStorage.h:97 Vector wrapper used to interact with bins vectors. Able to hide overflow and hidden bins. Definition BinnedStorage.h:21 BinsVecWrapper(BinsVecWrapper &&other) Definition BinnedStorage.h:33 std::decay_t< decltype(*std::declval< VecT >().begin())> BinType Definition BinnedStorage.h:26 BinsVecWrapper()=delete BinsVecWrapper(VecT &bins, const std::vector< size_t > &hiddenBins) HiddenBins std::vector<size_t> must be sorted. Definition BinnedStorage.h:30 const BinType & operator[](size_t index) const Definition BinnedStorage.h:41 Generated on Mon Oct 28 2024 13:47:23 for YODA - Yet more Objects for Data Analysis by 1.9.8 |