EVOLUTION-MANAGER
Edit File: running_mean.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Running mean of a time series</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for running_mean {igraph}"><tr><td>running_mean {igraph}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Running mean of a time series</h2> <h3>Description</h3> <p><code>running_mean</code> calculates the running mean in a vector with the given bin width. </p> <h3>Usage</h3> <pre> running_mean(v, binwidth) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>v</code></td> <td> <p>The numeric vector.</p> </td></tr> <tr valign="top"><td><code>binwidth</code></td> <td> <p>Numeric constant, the size of the bin, should be meaningful, ie. smaller than the length of <code>v</code>.</p> </td></tr> </table> <h3>Details</h3> <p>The running mean of <code>v</code> is a <code>w</code> vector of length <code>length(v)-binwidth+1</code>. The first element of <code>w</code> id the average of the first <code>binwidth</code> elements of <code>v</code>, the second element of <code>w</code> is the average of elements <code>2:(binwidth+1)</code>, etc. </p> <h3>Value</h3> <p>A numeric vector of length <code>length(v)-binwidth+1</code> </p> <h3>Author(s)</h3> <p>Gabor Csardi <a href="mailto:csardi.gabor@gmail.com">csardi.gabor@gmail.com</a> </p> <h3>Examples</h3> <pre> running_mean(1:100, 10) </pre> <hr /><div style="text-align: center;">[Package <em>igraph</em> version 1.3.5 <a href="00Index.html">Index</a>]</div> </body></html>