OmniSciDB  a5dc49c757
 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 422 of file quantile.h.

References quantile::detail::Centroids< RealType, IndexType >::counts_, quantile::detail::Centroids< RealType, IndexType >::curr_idx_, 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_.

423  {
424  out << "Centroids<" << typeid(RealType).name() << ',' << typeid(IndexType).name()
425  << ">(size(" << centroids.size() << ") curr_idx_(" << centroids.curr_idx_
426  << ") next_idx_(" << centroids.next_idx_ << ") sums_(";
427  for (IndexType i = 0; i < centroids.sums_.size(); ++i) {
428  out << (i ? " " : "") << std::setprecision(20) << centroids.sums_[i];
429  }
430  out << ") counts_(";
431  for (IndexType i = 0; i < centroids.counts_.size(); ++i) {
432  out << (i ? " " : "") << centroids.counts_[i];
433  }
434  return out << "))";
435 }
string name
Definition: setup.in.py:72

+ Here is the call graph for this function: