OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 370 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_.

371  {
372  out << "Centroids<" << typeid(RealType).name() << ',' << typeid(IndexType).name()
373  << ">(size(" << centroids.size() << ") curr_idx_(" << centroids.curr_idx_
374  << ") next_idx_(" << centroids.next_idx_ << ") sums_(";
375  for (IndexType i = 0; i < centroids.sums_.size(); ++i) {
376  out << (i ? " " : "") << std::setprecision(20) << centroids.sums_[i];
377  }
378  out << ") counts_(";
379  for (IndexType i = 0; i < centroids.counts_.size(); ++i) {
380  out << (i ? " " : "") << centroids.counts_[i];
381  }
382  return out << "))";
383 }
string name
Definition: setup.in.py:72

+ Here is the call graph for this function: