grideval: Grid evaluation of 'copre_result' and 'seqre_result' objects

View source: R/grideval.R

$.grideval_resultR Documentation

Grid evaluation of copre_result and seqre_result objects

Description

Grid evaluation of copre_result and seqre_result objects

Usage

## S3 method for class 'grideval_result'
obj$name

## S3 method for class 'grideval_result'
obj[[i]]

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

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

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

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.

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.

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


copre documentation built on May 29, 2024, 7:36 a.m.