it.interpolate {rPraat} | R Documentation |
Interpolates IntensityTier contour in given time instances.
it.interpolate(it, t)
it |
IntensityTier object |
t |
vector of time instances of interest |
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.
IntensityTier object
it.getPointIndexNearestTime
, it.read
, it.write
, it.plot
, it.cut
, it.cut0
, it.legendre
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)