OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
quantile::detail::anonymous_namespace{quantile.h}::OrderByMeanAscCountDesc< RealType, IndexType > Struct Template Reference

#include <quantile.h>

Public Types

using Value = double_sort::Value< RealType, IndexType >
 

Public Member Functions

DEVICE bool operator() (Value const &a, Value const &b) const
 

Detailed Description

template<typename RealType, typename IndexType>
struct quantile::detail::anonymous_namespace{quantile.h}::OrderByMeanAscCountDesc< RealType, IndexType >

Definition at line 308 of file quantile.h.

Member Typedef Documentation

template<typename RealType , typename IndexType >
using quantile::detail::anonymous_namespace{quantile.h}::OrderByMeanAscCountDesc< RealType, IndexType >::Value = double_sort::Value<RealType, IndexType>

Definition at line 309 of file quantile.h.

Member Function Documentation

template<typename RealType , typename IndexType >
DEVICE bool quantile::detail::anonymous_namespace{quantile.h}::OrderByMeanAscCountDesc< RealType, IndexType >::operator() ( Value const &  a,
Value const &  b 
) const
inline

Definition at line 311 of file quantile.h.

References double_sort::Value< T0, T1 >::value0(), and double_sort::Value< T0, T1 >::value1().

311  {
312  auto const lhs = a.value0() * b.value1();
313  auto const rhs = b.value0() * a.value1();
314  return lhs < rhs || (lhs == rhs && b.value1() < a.value1());
315  }
constexpr double a
Definition: Utm.h:32

+ Here is the call graph for this function:


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