OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 286 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 287 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 289 of file quantile.h.

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

289  {
290  auto const lhs = a.value0() * b.value1();
291  auto const rhs = b.value0() * a.value1();
292  return lhs < rhs || (lhs == rhs && b.value1() < a.value1());
293  }

+ Here is the call graph for this function:


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