vectInterp: Interpolating the values between two vectors.

Description Usage Arguments Value Examples

View source: R/funcs_interps.R

Description

A wrapper of diff.1D function, returning the mean values of concentration during each time step of the diffusion.

Usage

1
vectInterp(vect1, vect2, dist)

Arguments

vect1

First vector variable.

vect2

Second vector variable.

dist

Desired interpolation value of distance between the two vectors.

Value

A vector with interpolated values between the first and the second vectors.

Examples

1
2
3
4
5
library(Rdiffsolver)
vect1 <- seq(1,100,length.out = 10)
vect2 <- seq(2.5,250,length.out = 10)
dist <- 0.12
vect_int <- vectInterp(vect1,vect2,dist)

ahmad-alkadri/Rdiffsolver documentation built on Feb. 4, 2020, 9:45 p.m.