# running.mean

From igraph v0.4.4
by Gabor Csardi

##### Running mean of a time series

`running.mean`

calculates the running mean in a vector
with the given bin width.

- Keywords
- manip

##### Usage

`running.mean(v, binwidth)`

##### Arguments

- v
- The numeric vector.
- binwidth
- Numeric constant, the size of the bin, should be
meaningful, ie. smaller than the length of
`v`

.

##### Details

The running mean of `v`

is a `w`

vector of length `length(v)-binwidth+1`

. The first element of
`w`

id the average of the first `binwidth`

elements of
`v`

, the second element of `w`

is the average of elements
`2:(binwidth+1)`

, etc.

##### Value

- A numeric vector of length
`length(v)-binwidth+1`

##### Examples

`running.mean(1:100, 10)`

*Documentation reproduced from package igraph, version 0.4.4, License: GPL version 2 or later (June, 1991)*

### Community examples

Looks like there are no examples yet.