Learn R Programming

copre (version 0.2.1)

$.grideval_result: Grid evaluation of copre_result and seqre_result objects

Description

Grid evaluation of copre_result and seqre_result objects

Usage

# S3 method for grideval_result
$(obj, name)

# S3 method for grideval_result [[(obj, i)

grideval(obj, grd = NULL, func = "density", nthreads = 1)

# S3 method for copre_result grideval(obj, grd = NULL, func = "density", nthreads = 1)

# S3 method for seqre_result grideval(obj, grd = NULL, func = "density", nthreads = 1)

Value

A grideval_result object, which is a matrix with dimension [k, m]

of evaluated sample functions, with the following attributes:

  • func: The evaluated function.

  • grid: The grid points on which each of the k rows was evaluated.

  • args: A copy of the args entry from obj.

Arguments

obj

A copre_result or seqre_result object.

name

The name of the attribute to access (i.e. func, grid, or args).

i

A numeric vector of sample indices.

grd

For seqre_result objects, a numeric vector of m grid points.

func

Either 'distribution', 'density', or 'gradient'.

nthreads

The number of parallel threads to launch with OpenMP.

Methods (by class)

  • grideval(copre_result): Grid evaluation method for copre_result objects.

  • grideval(seqre_result): Grid evaluation method for seqre_result objects.

Functions

  • $: Attribute access method for grideval_result objects

  • [[: Subset method for grideval_result objects