Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::stats::D2< RTYPE, NA, T > Class Template Reference

#include <dpq.h>

Inheritance diagram for Rcpp::stats::D2< RTYPE, NA, T >:
Collaboration diagram for Rcpp::stats::D2< RTYPE, NA, T >:

Public Types

typedef Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
typedef double(* FunPtr) (double, double, double, int)
Public Types inherited from Rcpp::VectorBase< REALSXP, NA, D2< RTYPE, NA, T > >
typedef traits::storage_type< RTYPE >::type stored_type
typedef traits::storage_type< RTYPE >::type elem_type
typedef iter_base< iter_traits > iterator
typedef iter_base< const_iter_traits > const_iterator

Public Member Functions

 D2 (FunPtr ptr_, const VEC_TYPE &vec_, double p0_, double p1_, bool log_)
double operator[] (int i) const
int size () const
Public Member Functions inherited from Rcpp::VectorBase< REALSXP, NA, D2< RTYPE, NA, T > >
D2< RTYPE, NA, T > & get_ref ()
stored_type operator[] (R_xlen_t i) const
R_xlen_t size () const
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const

Private Attributes

FunPtr ptr
const VEC_TYPEvec
double p0
double p1
int log

Detailed Description

template<int RTYPE, bool NA, typename T>
class Rcpp::stats::D2< RTYPE, NA, T >

Definition at line 76 of file dpq.h.

Member Typedef Documentation

◆ FunPtr

template<int RTYPE, bool NA, typename T>
typedef double(* Rcpp::stats::D2< RTYPE, NA, T >::FunPtr) (double, double, double, int)

Definition at line 79 of file dpq.h.

◆ VEC_TYPE

template<int RTYPE, bool NA, typename T>
typedef Rcpp::VectorBase<RTYPE,NA,T> Rcpp::stats::D2< RTYPE, NA, T >::VEC_TYPE

Definition at line 78 of file dpq.h.

Constructor & Destructor Documentation

◆ D2()

template<int RTYPE, bool NA, typename T>
Rcpp::stats::D2< RTYPE, NA, T >::D2 ( FunPtr ptr_,
const VEC_TYPE & vec_,
double p0_,
double p1_,
bool log_ )
inline

Definition at line 81 of file dpq.h.

References log, p0, p1, ptr, and vec.

Member Function Documentation

◆ operator[]()

template<int RTYPE, bool NA, typename T>
double Rcpp::stats::D2< RTYPE, NA, T >::operator[] ( int i) const
inline

Definition at line 84 of file dpq.h.

References log, p0, p1, ptr, and vec.

◆ size()

template<int RTYPE, bool NA, typename T>
int Rcpp::stats::D2< RTYPE, NA, T >::size ( ) const
inline

Definition at line 88 of file dpq.h.

References vec.

Member Data Documentation

◆ log

template<int RTYPE, bool NA, typename T>
int Rcpp::stats::D2< RTYPE, NA, T >::log
private

Definition at line 94 of file dpq.h.

Referenced by D2(), and operator[]().

◆ p0

template<int RTYPE, bool NA, typename T>
double Rcpp::stats::D2< RTYPE, NA, T >::p0
private

Definition at line 93 of file dpq.h.

Referenced by D2(), and operator[]().

◆ p1

template<int RTYPE, bool NA, typename T>
double Rcpp::stats::D2< RTYPE, NA, T >::p1
private

Definition at line 93 of file dpq.h.

Referenced by D2(), and operator[]().

◆ ptr

template<int RTYPE, bool NA, typename T>
FunPtr Rcpp::stats::D2< RTYPE, NA, T >::ptr
private

Definition at line 91 of file dpq.h.

Referenced by D2(), and operator[]().

◆ vec

template<int RTYPE, bool NA, typename T>
const VEC_TYPE& Rcpp::stats::D2< RTYPE, NA, T >::vec
private

Definition at line 92 of file dpq.h.

Referenced by D2(), operator[](), and size().


The documentation for this class was generated from the following file:
  • inst/include/Rcpp/stats/dpq/dpq.h