Rcpp Version 1.0.14
Loading...
Searching...
No Matches
Rcpp::sugar::Mean< RTYPE, NA, T > Class Template Reference

#include <mean.h>

Inheritance diagram for Rcpp::sugar::Mean< RTYPE, NA, T >:
Collaboration diagram for Rcpp::sugar::Mean< RTYPE, NA, T >:

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
 
typedef Rcpp::Vector< RTYPE > VECTOR
 

Public Member Functions

 Mean (const VEC_TYPE &object_)
 
double get () const
 
- Public Member Functions inherited from Rcpp::sugar::Lazy< double, Mean< RTYPE, NA, T > >
 operator double () const
 

Private Attributes

const VEC_TYPEobject
 

Detailed Description

template<int RTYPE, bool NA, typename T>
class Rcpp::sugar::Mean< RTYPE, NA, T >

Definition at line 27 of file mean.h.

Member Typedef Documentation

◆ VEC_TYPE

template<int RTYPE, bool NA, typename T >
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::sugar::Mean< RTYPE, NA, T >::VEC_TYPE

Definition at line 29 of file mean.h.

◆ VECTOR

template<int RTYPE, bool NA, typename T >
typedef Rcpp::Vector<RTYPE> Rcpp::sugar::Mean< RTYPE, NA, T >::VECTOR

Definition at line 30 of file mean.h.

Constructor & Destructor Documentation

◆ Mean()

template<int RTYPE, bool NA, typename T >
Rcpp::sugar::Mean< RTYPE, NA, T >::Mean ( const VEC_TYPE object_)
inline

Definition at line 32 of file mean.h.

Member Function Documentation

◆ get()

template<int RTYPE, bool NA, typename T >
double Rcpp::sugar::Mean< RTYPE, NA, T >::get ( ) const
inline

Definition at line 34 of file mean.h.

References Rcpp::as(), Rcpp::sugar::Mean< RTYPE, NA, T >::object, and Rcpp::VectorBase< RTYPE, na, VECTOR >::size().

Here is the call graph for this function:

Member Data Documentation

◆ object


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