export_interpolate: Interpolate function implemented in Stan only export for...

View source: R/predictPBK.R

export_interpolateR Documentation

Interpolate function implemented in Stan only export for checking

Description

This function export the linear iterpolation implemented in Stan. It can be use to re-sample the exposure profiles.

Usage

export_interpolate(x, xpt, ypt, chain = 1, iter = 1, ...)

Arguments

x

interpolation point x

xpt

a vector of x axis (has to be same size as ypt vector)

ypt

a vector of y axis (has to be same size as ypt vector)

chain

number of chain

iter

number of iteration

...

Arguments passed to rstan::sampling

Value

A sample of a stanfit object returning a linear interpolation


rPBK documentation built on May 29, 2024, 2:41 a.m.