RInside Version 0.2.16
DensityApp Class Reference
Inheritance diagram for DensityApp:
Collaboration diagram for DensityApp:

Public Member Functions

 DensityApp (const WEnvironment &env, RInside &R)
 
 DensityApp (const WEnvironment &env, RInside &R)
 

Private Types

enum  Kernel {
  Gaussian = 0, Epanechnikov = 1, Rectangular = 2, Triangular = 3,
  Cosine = 4, Gaussian = 0, Epanechnikov = 1, Rectangular = 2,
  Triangular = 3, Cosine = 4
}
 
enum  Kernel {
  Gaussian = 0, Epanechnikov = 1, Rectangular = 2, Triangular = 3,
  Cosine = 4, Gaussian = 0, Epanechnikov = 1, Rectangular = 2,
  Triangular = 3, Cosine = 4
}
 

Private Member Functions

void reportButton ()
 
void reportEdit ()
 
void reportSpinner ()
 
void plot ()
 
void reportButton ()
 
void reportEdit ()
 
void reportSpinner ()
 
void plot ()
 

Private Attributes

WLineEdit * codeEdit_
 
WButtonGroup * group_
 
WSpinBox * spin_
 
WImage * img_
 
WFileResource * imgfile_
 
WText * greeting_
 
RInsideR_
 
std::string tempfile_
 
int bw_
 
int kernel_
 
std::string cmd_
 
Rcpp::NumericVector Yvec_
 

Detailed Description

Definition at line 33 of file wtdensity.cpp.

Member Enumeration Documentation

◆ Kernel [1/2]

enum DensityApp::Kernel
private
Enumerator
Gaussian 
Epanechnikov 
Rectangular 
Triangular 
Cosine 
Gaussian 
Epanechnikov 
Rectangular 
Triangular 
Cosine 

Definition at line 50 of file wtdensity.cpp.

◆ Kernel [2/2]

enum DensityApp::Kernel
private
Enumerator
Gaussian 
Epanechnikov 
Rectangular 
Triangular 
Cosine 
Gaussian 
Epanechnikov 
Rectangular 
Triangular 
Cosine 

Definition at line 50 of file wtdensityPlain.cpp.

Constructor & Destructor Documentation

◆ DensityApp() [1/2]

DensityApp::DensityApp ( const WEnvironment &  env,
RInside R 
)

Definition at line 63 of file wtdensity.cpp.

References bw_, cmd_, codeEdit_, Cosine, Epanechnikov, Gaussian, greeting_, group_, img_, imgfile_, kernel_, RInside::parseEval(), plot(), R_, Rectangular, reportButton(), reportEdit(), reportSpinner(), spin_, tempfile_, and Triangular.

Referenced by createApplication().

Here is the call graph for this function:

◆ DensityApp() [2/2]

DensityApp::DensityApp ( const WEnvironment &  env,
RInside R 
)

Member Function Documentation

◆ plot() [1/2]

void DensityApp::plot ( void  )
private

Definition at line 169 of file wtdensity.cpp.

References bw_, greeting_, imgfile_, kernel_, RInside::parseEvalQ(), R_, tempfile_, and Yvec_.

Referenced by DensityApp(), reportButton(), reportEdit(), and reportSpinner().

Here is the call graph for this function:

◆ plot() [2/2]

void DensityApp::plot ( )
private

◆ reportButton() [1/2]

void DensityApp::reportButton ( )
private

Definition at line 151 of file wtdensity.cpp.

References group_, kernel_, and plot().

Referenced by DensityApp().

Here is the call graph for this function:

◆ reportButton() [2/2]

void DensityApp::reportButton ( )
private

◆ reportEdit() [1/2]

void DensityApp::reportEdit ( )
private

Definition at line 156 of file wtdensity.cpp.

References cmd_, codeEdit_, RInside::parseEvalQNT(), plot(), R_, and Yvec_.

Referenced by DensityApp().

Here is the call graph for this function:

◆ reportEdit() [2/2]

void DensityApp::reportEdit ( )
private

◆ reportSpinner() [1/2]

void DensityApp::reportSpinner ( )
private

Definition at line 164 of file wtdensity.cpp.

References bw_, plot(), and spin_.

Referenced by DensityApp().

Here is the call graph for this function:

◆ reportSpinner() [2/2]

void DensityApp::reportSpinner ( )
private

Member Data Documentation

◆ bw_

int DensityApp::bw_
private

Definition at line 55 of file wtdensity.cpp.

Referenced by DensityApp(), plot(), and reportSpinner().

◆ cmd_

std::string DensityApp::cmd_
private

Definition at line 56 of file wtdensity.cpp.

Referenced by DensityApp(), and reportEdit().

◆ codeEdit_

WLineEdit * DensityApp::codeEdit_
private

Definition at line 38 of file wtdensity.cpp.

Referenced by DensityApp(), and reportEdit().

◆ greeting_

WText * DensityApp::greeting_
private

Definition at line 43 of file wtdensity.cpp.

Referenced by DensityApp(), and plot().

◆ group_

WButtonGroup * DensityApp::group_
private

Definition at line 39 of file wtdensity.cpp.

Referenced by DensityApp(), and reportButton().

◆ img_

WImage * DensityApp::img_
private

Definition at line 41 of file wtdensity.cpp.

Referenced by DensityApp().

◆ imgfile_

WFileResource * DensityApp::imgfile_
private

Definition at line 42 of file wtdensity.cpp.

Referenced by DensityApp(), and plot().

◆ kernel_

int DensityApp::kernel_
private

Definition at line 55 of file wtdensity.cpp.

Referenced by DensityApp(), plot(), and reportButton().

◆ R_

RInside & DensityApp::R_
private

Definition at line 53 of file wtdensity.cpp.

Referenced by DensityApp(), plot(), and reportEdit().

◆ spin_

WSpinBox * DensityApp::spin_
private

Definition at line 40 of file wtdensity.cpp.

Referenced by DensityApp(), and reportSpinner().

◆ tempfile_

std::string DensityApp::tempfile_
private

Definition at line 54 of file wtdensity.cpp.

Referenced by DensityApp(), and plot().

◆ Yvec_

Rcpp::NumericVector DensityApp::Yvec_
private

Definition at line 57 of file wtdensity.cpp.

Referenced by plot(), and reportEdit().


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