OmniSciDB  72c90bc290
 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 318 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 319 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 321 of file quantile.h.

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

321  {
322  auto const lhs = a.value0() * b.value1();
323  auto const rhs = b.value0() * a.value1();
324  return lhs < rhs || (lhs == rhs && b.value1() < a.value1());
325  }
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: