OmniSciDB  085a039ca4
 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 393 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_.

394  {
395  out << "Centroids<" << typeid(RealType).name() << ',' << typeid(IndexType).name()
396  << ">(size(" << centroids.size() << ") curr_idx_(" << centroids.curr_idx_
397  << ") next_idx_(" << centroids.next_idx_ << ") sums_(";
398  for (IndexType i = 0; i < centroids.sums_.size(); ++i) {
399  out << (i ? " " : "") << std::setprecision(20) << centroids.sums_[i];
400  }
401  out << ") counts_(";
402  for (IndexType i = 0; i < centroids.counts_.size(); ++i) {
403  out << (i ? " " : "") << centroids.counts_[i];
404  }
405  return out << "))";
406 }
string name
Definition: setup.in.py:72

+ Here is the call graph for this function: