$.grideval_result {copre}R 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:

Methods (by class)

Functions


[Package copre version 0.2.0 Index]