Learn R Programming

fdaPDE

This repository contains the development version of fdaPDE package.

New features wrt CRAN: Wald inference on the nonparametric term for space-time models.

Compiled in Ubuntu using g++ compiler and in macOS: for the precise versions tested, see the report. If using a Linux machine, it is advisable to install rgl, geometry, plot3D and plot3Drgl before fdaPDE.

Image.FEM has been restored. Bugs in fPCA, boundary conditions and space-varying regression have been fixed. Issues of point location in 2.5D have been fixed. Compiled in Win RStudio, Ubuntu using g++ compiler and in macOS: for the precise versions tested, see the report. If using a Linux machine, it is advisable to install rgl, geometry, plot3D and before fdaPDE. If using Windows, it is advisable to install Rtools and then rgl, plot3D, geometry and RcppEigen libraries.

Subfolder structure:

/src contains all C++ code and a special file named Makevars necessary to build and install the R package. The code is now organized in subfolders and divided into source files and header files. See the report for the precise new orgaization. We suggest to use a base-8 scale as spacing scale for visualization, in order to preserve the code style.

/R contains the R functions that wrap the C++ calls,

/data contains the data to run the tests in the examples,

/man contains the manual for the package.

Installation:

Two different methods are proposed in order to install the package in the R environment.
Download the .zip file from the repository, unzip it, and for the installation choose one of the two following methods:

  • R console: install.packages("/path/to/fdaPDE", type='source', repos=NULL)

  • From the Terminal: $ R CMD build <path to folder to be installed>
    $ R CMD INSTALL -l <path name of the R library tree> <path to folder to be installed>

see the installation section in the report for more information.

Remarks:

  1. the shift of indexes from R to C++ is done within the R functions smooth.FEM and FPCA.FEM Do not use C++ scripts directly on the R mesh objects, unless you take care of shifing indexes by yourself.

Copy Link

Version

Install

install.packages('fdaPDE')

Monthly Downloads

336

Version

1.1-21

License

GPL-3

Maintainer

Eleonora Arnone

Last Published

January 8th, 2025

Functions in fdaPDE (1.1-21)

fs.test.3D

FELSPLINE 3D test function
eval.FEM.time

Evaluate a FEM.time object at a set of point locations
fs.test

FELSPLINE test function
horseshoe2.5D

Horseshoe2.5D domain
horseshoe2D

Horseshoe domain
create.mesh.3D

Create a mesh.3D object from the connectivity matrix and nodes locations
eval.FEM

Evaluate a FEM object at a set of point locations
fdaPDE-deprecated

Deprecated Functions
create.mesh.2.5D

Create a mesh.2.5D object from the nodes locations and the connectivity matrix
hub2.5D

Hub domain
image.FEM

Image Plot of a 2D FEM object
inferenceDataObjectBuilder

Constructor for inferenceDataObject class
inferenceDataObjectTime-class

Class for inference data in ST case
inferenceDataObjectTimeBuilder

Constructor for inferenceDataObjectTime class
plot.FEM

Plot a FEM object
create.mesh.2D

Create a 2D triangular mesh
image.FEM.time

Image plot of a 2D FEM.time object at a given time
plot.mesh.1.5D

Plot a mesh.1.5D object
quasicircle2D

Quasicircle2D domain
plot.FEM.time

Plot a FEM.time object at a given time
projection.points.2.5D

Project 3D points onto 2D 2.5D triangular mesh
quasicircle2Dareal

Quasicircle2Dareal domain
inferenceDataObject-class

Class for inference data
refine.by.splitting.mesh.2.5D

Create a mesh.2.5D object by splitting each triangle of a given mesh into four subtriangles.
plot.mesh.2.5D

Plot a mesh.2.5D object
plot.mesh.3D

Plot a mesh.3D object
plot.mesh.2D

Plot a mesh.2D object
projection.points.1.5D

Project 2D points onto 1.5D linear network mesh
refine.by.splitting.mesh.2D

Create a mesh.2D object by splitting each triangle of a given mesh into four subtriangles.
refine.by.splitting.mesh.3D

Create a mesh.3D object by splitting each tetrahedron of a given mesh into eight subtetrahedrons.
refine.by.splitting.mesh.1.5D

Create a mesh.1.5D object by splitting each edge of a given mesh into two subedges.
refine.mesh.1.5D

Refine 1.5D mesh
refine.mesh.2D

Refine a 2D triangular mesh
smooth.FEM

Spatial regression with differential regularization
sphere3Ddata

Sphere3Ddata
smooth.FEM.time

Space-time regression with differential regularization
DE.FEM

Nonparametric density estimation with differential regularization
create.FEM.basis

Create a FEM basis
FPCA.FEM

Smooth Functional Principal Component Analysis
covs.test

Covariate test function for the horseshoe domain
create.mesh.1.5D

Create a 1.5D linear network mesh
FEM

Define a surface or spatial field by a Finite Element basis expansion
FEM.time

Define a spatio-temporal field by a Finite Element basis expansion
DE.FEM.time

Nonparametric spatio-temporal density estimation with differential regularization
DE.heat.FEM

Density initialization
DE.heat.FEM.time

Spatio-temporal density initialization