data.BPST: Generate testing dataset for bivariate spline smoothing.

View source: R/data.BPST.R

data.BPSTR Documentation

Generate testing dataset for bivariate spline smoothing.

Description

This function generate the testing dataset for bivariate spline smoothing.

Usage

data.BPST(Z, V, Tr, func = 1, sigma = 0.1, iter = 2019)

Arguments

Z

The cooridinates of dimension n by two. Each row is the coordinates of a point.

V

The N by two matrix of vertices of a triangulation, where N is the number of vertices. Each row is the coordinates for a vertex.

Tr

The triangulation matrix of dimention nT by three, where nT is the number of triangles in the triangulation. Each row is the indices of vertices in V.

func

The choice of test function – default is 1. Possible choices include 1,2,3,4,5,6,7,8.

sigma

The standard deviation of the white noise – default is 0.1.

Details

This R program is modified based on the Matlab program written by Ming-Jun Lai from the University of Georgia and Li Wang from the Iowa State University.

Value

A list of vectors and matrice, including:

Y

The response variable.

mu

The mean function.

Z

The coordinates.

ind

A vector contains the indicators whether the point is inside the given triangulation.


FIRST-Data-Lab/BPST documentation built on Sept. 18, 2023, 7:31 a.m.