subVectorMean_fast: Mean with Weighted First And Last Element

Description Usage Arguments Value

Description

Calculates the mean of a sub-vector, weighting start and end if the corresponding indices are no whole numbers.

Usage

1
subVectorMean_fast(x, startIdx, endIdx)

Arguments

x

Numeric vector.

startIdx

Index of first element of sub-vector.

endIdx

Index of last element of sub-vector.

Value

The weighted mean as double.


Jakob-Bach/FastTSDistances documentation built on May 13, 2019, 1:15 p.m.