File: std.Rd

package info (click to toggle)
r-cran-matlab 1.0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 640 kB
  • sloc: sh: 13; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 722 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
26
27
28
29
30
31
32
% $Id: std.Rd 25 2022-05-30 18:46:01Z proebuck $

\name{std}
\alias{std}
\title{MATLAB std function}
\description{
  Computes the standard deviation of the values of \code{x}.
}
\usage{
std(x, flag=0)
}
\arguments{
  \item{x}{numeric vector or matrix}
  \item{flag}{numeric scalar. If \code{0}, selects unbiased algorithm.
  If \code{1}, selects biased algorithm (currently unsupported).}
}
\details{
  Simply invokes \code{\link[stats]{sd}}.
}
\value{
  Return value depends on argument \code{x}. If vector, returns the
  standard deviation. If matrix, returns vector containing the
  standard deviation of each column.
}
\author{
  P. Roebuck \email{proebuck1701@gmail.com}
}
\examples{
std(1:2) ^ 2
}
\keyword{univar}