export_interpolate {rPBK}R 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


[Package rPBK version 0.2.4 Index]