it.interpolate {rPraat}R Documentation

it.interpolate

Description

Interpolates IntensityTier contour in given time instances.

Usage

it.interpolate(it, t)

Arguments

it

IntensityTier object

t

vector of time instances of interest

Details

a) If t < min(it$t) (or t > max(it$t)), returns the first (or the last) value of it$i. b) If t is existing point in it$t, returns the respective it$f. c) If t is between two existing points, returns linear interpolation of these two points.

Value

IntensityTier object

See Also

it.getPointIndexNearestTime, it.read, it.write, it.plot, it.cut, it.cut0, it.legendre

Examples

it <- it.sample()
it2 <- it.interpolate(it, seq(it$t[1], it$t[length(it$t)], by = 0.001))
## Not run: 
it.plot(it)
it.plot(it2)

## End(Not run)

[Package rPraat version 1.3.2-1 Index]