aGrUM  0.13.2
gum::learning::GreaterTupleOnLast Class Reference

#include <Miic.h>

Public Member Functions

bool operator() (const std::tuple< std::tuple< Idx, Idx, Idx > *, double, double, double > &e1, const std::tuple< std::tuple< Idx, Idx, Idx > *, double, double, double > &e2) const
 

Detailed Description

Definition at line 72 of file Miic.h.

Member Function Documentation

bool gum::learning::GreaterTupleOnLast::operator() ( const std::tuple< std::tuple< Idx, Idx, Idx > *, double, double, double > &  e1,
const std::tuple< std::tuple< Idx, Idx, Idx > *, double, double, double > &  e2 
) const

Definition at line 85 of file Miic.cpp.

88  {
89  double p1xz = std::get< 2 >(e1);
90  double p1yz = std::get< 3 >(e1);
91  double p2xz = std::get< 2 >(e2);
92  double p2yz = std::get< 3 >(e2);
93  double I1 = std::get< 1 >(e1);
94  double I2 = std::get< 1 >(e2);
95  if (std::max(p1xz, p1yz) == std::max(p2xz, p2yz)) {
96  return I1 > I2;
97  } else {
98  return std::max(p1xz, p1yz) > std::max(p2xz, p2yz);
99  }
100  }

The documentation for this class was generated from the following files: