Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
xgboost::common::QuantileSketchTemplate< DType, RType, TSummary >::SummaryContainer Struct Reference

same as summary, but use STL to backup the space More...

#include <quantile.h>

Inheritance diagram for xgboost::common::QuantileSketchTemplate< DType, RType, TSummary >::SummaryContainer:

Public Member Functions

 SummaryContainer (const SummaryContainer &src)
 
void Reserve (size_t size)
 reserve space for summary
 
void Reduce (const Summary &src, size_t max_nbyte)
 do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i
 
template<typename TStream >
void Save (TStream &fo) const
 save the data structure into stream
 
template<typename TStream >
void Load (TStream &fi)
 load data structure from input stream
 

Static Public Member Functions

static size_t CalcMemCost (size_t nentry)
 return the number of bytes this data structure cost in serialization
 

Data Fields

std::vector< Entryspace
 

Detailed Description

template<typename DType, typename RType, class TSummary>
struct xgboost::common::QuantileSketchTemplate< DType, RType, TSummary >::SummaryContainer

same as summary, but use STL to backup the space

Member Function Documentation

◆ Reduce()

template<typename DType , typename RType , class TSummary >
void xgboost::common::QuantileSketchTemplate< DType, RType, TSummary >::SummaryContainer::Reduce ( const Summary src,
size_t  max_nbyte 
)
inline

do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i

Parameters
srcthe source summary
max_nbytemaximum number of byte allowed in here

The documentation for this struct was generated from the following file: