bspSampling: Creates a matrix where each column represents a sampled CDF...

Description Usage Arguments Value Examples

Description

Creates a matrix where each column represents a sampled CDF from the provided BSP

Usage

1
bspSampling(bsp, reps = 10000)

Arguments

bsp

Any bsp object

reps

Number of samples to draw, default 10000

Value

A matrix. Each column can be plotted against the BSP's support to view a sampled CDF from the BSP. Rownames are the support point for that row. Use samplesAt to get extract sampled distribution at single point

Examples

1
2
3
4
bsp=bsp(c(1:3), centeringMeasure = c(.1,.9, .98), precision = 2)
samples=bspSamples(bsp)
#To visualize
matplot(samples, bsp$support, type='l')

jntrcs/BnpSysRel documentation built on May 16, 2019, 9:09 p.m.