OmniSciDB  21ac014ffc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
quantile::detail Namespace Reference

Namespaces

 anonymous_namespace{quantile.h}
 

Classes

struct  Centroid
 
struct  Centroids
 
class  CentroidsMerger
 
class  CentroidsMemory
 
class  TDigest
 

Functions

template<typename RealType , typename IndexType >
std::ostream & operator<< (std::ostream &out, Centroids< RealType, IndexType > const &centroids)
 

Function Documentation

template<typename RealType , typename IndexType >
std::ostream& quantile::detail::operator<< ( std::ostream &  out,
Centroids< RealType, IndexType > const centroids 
)

Definition at line 381 of file quantile.h.

References quantile::detail::Centroids< RealType, IndexType >::counts_, quantile::detail::Centroids< RealType, IndexType >::curr_idx_, i, setup::name, quantile::detail::Centroids< RealType, IndexType >::next_idx_, VectorView< T >::size(), quantile::detail::Centroids< RealType, IndexType >::size(), and quantile::detail::Centroids< RealType, IndexType >::sums_.

382  {
383  out << "Centroids<" << typeid(RealType).name() << ',' << typeid(IndexType).name()
384  << ">(size(" << centroids.size() << ") curr_idx_(" << centroids.curr_idx_
385  << ") next_idx_(" << centroids.next_idx_ << ") sums_(";
386  for (IndexType i = 0; i < centroids.sums_.size(); ++i) {
387  out << (i ? " " : "") << std::setprecision(20) << centroids.sums_[i];
388  }
389  out << ") counts_(";
390  for (IndexType i = 0; i < centroids.counts_.size(); ++i) {
391  out << (i ? " " : "") << centroids.counts_[i];
392  }
393  return out << "))";
394 }
string name
Definition: setup.in.py:72

+ Here is the call graph for this function: