Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::sugar::Median< RTYPE, NA, T, NA_RM > Class Template Reference

#include <median.h>

Public Types

enum  { RESULT_RTYPE = median_detail::result<RTYPE>::rtype }
typedef median_detail::result< RTYPE >::type result_type
typedef Rcpp::traits::storage_type< RTYPE >::type stored_type
typedef T VECTOR

Public Member Functions

 Median (const VECTOR &xx)
 operator result_type ()

Private Attributes

VECTOR x

Detailed Description

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
class Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >

Definition at line 87 of file median.h.

Member Typedef Documentation

◆ result_type

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
typedef median_detail::result<RTYPE>::type Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::result_type

Definition at line 89 of file median.h.

◆ stored_type

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
typedef Rcpp::traits::storage_type<RTYPE>::type Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::stored_type

Definition at line 90 of file median.h.

◆ VECTOR

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
typedef T Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::VECTOR

Definition at line 92 of file median.h.

Member Enumeration Documentation

◆ anonymous enum

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
anonymous enum
Enumerator
RESULT_RTYPE 

Definition at line 91 of file median.h.

Constructor & Destructor Documentation

◆ Median()

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::Median ( const VECTOR & xx)
inline

Definition at line 98 of file median.h.

References Rcpp::clone(), and x.

Here is the call graph for this function:

Member Function Documentation

◆ operator result_type()

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::operator result_type ( )
inline

Definition at line 101 of file median.h.

References Rcpp::any(), Rcpp::traits::get_na(), Rcpp::sugar::median_detail::half(), Rcpp::is_na(), Rcpp::sugar::median_detail::less(), and x.

Here is the call graph for this function:

Member Data Documentation

◆ x

template<int RTYPE, bool NA, typename T, bool NA_RM = false>
VECTOR Rcpp::sugar::Median< RTYPE, NA, T, NA_RM >::x
private

Definition at line 95 of file median.h.

Referenced by Median(), and operator result_type().


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/sugar/functions/median.h