File: rolling_mean_by_h.Rd

package info (click to toggle)
r-cran-prophet 1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 736 kB
  • sloc: sh: 13; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{rolling_mean_by_h}
\alias{rolling_mean_by_h}
\title{Compute a rolling mean of x, after first aggregating by h}
\usage{
rolling_mean_by_h(x, h, w, name)
}
\arguments{
\item{x}{Array.}

\item{h}{Array of horizon for each value in x.}

\item{w}{Integer window size (number of elements).}

\item{name}{String name for metric in result dataframe.}
}
\value{
Dataframe with columns horizon and name, the rolling mean of x.
}
\description{
Right-aligned. Computes a single mean for each unique value of h. Each mean
is over at least w samples.
}
\keyword{internal}