summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-02-24 21:16:34 +0530
committerSuraj Yerramilli2016-02-24 21:16:34 +0530
commit14f465f83252733a71692082ce9ee44d228b14eb (patch)
treee52a505ccb44b0a8488f61ad40331475fe8b130d /man
parentd20ea91590af0242dbc7ea788b8058f762a649f5 (diff)
downloadSysID-R-code-14f465f83252733a71692082ce9ee44d228b14eb.tar.gz
SysID-R-code-14f465f83252733a71692082ce9ee44d228b14eb.tar.bz2
SysID-R-code-14f465f83252733a71692082ce9ee44d228b14eb.zip
code to calculate the noise spectrum
Diffstat (limited to 'man')
-rw-r--r--man/spa.Rd29
1 files changed, 11 insertions, 18 deletions
diff --git a/man/spa.Rd b/man/spa.Rd
index 3979b7a..53dffd8 100644
--- a/man/spa.Rd
+++ b/man/spa.Rd
@@ -4,28 +4,24 @@
\alias{spa}
\title{Estimate frequency response}
\usage{
-spa(data, npad = 255)
+spa(x, winsize = NULL, freq = NULL)
}
\arguments{
-\item{data}{an \code{idframe} object}
+\item{x}{an \code{idframe} object}
-\item{npad}{an integer representing the total length of each time series
-to analyze after padding with zeros. This argument allows the user to
-control the spectral resolution of the SDF estimates: the normalized
-frequency interval is deltaf=1/npad. (Default: 255)}
+\item{freq}{frequency points at which the response is evaluated
+(Default: \code{seq(1,128)/128*pi/Ts})}
+
+\item{W}{lag size of the Hanning window (Default: \code{min
+(length(x)/10,30)})}
}
\value{
-an \code{idfrd} object containing the estimated frequency response
+an \code{idfrd} object containing the estimated frequency response
+and the noise spectrum
}
\description{
-Estimates Frequency Response with fixed frequency resolution using
-spectral analysis
-}
-\details{
-The function calls the \code{SDF} function in the \code{sapa} package to
-compute the cross-spectral densities. The method used is \strong{Welch's
-Overlapped Segment Averaging} with a normalized \strong{Hanning} window.
-The overlap used is 50%.
+Estimates frequency response and noise spectrum from data with
+fixed resolution using spectral analysis
}
\examples{
data(frf)
@@ -36,7 +32,4 @@ frf <- spa(data)
Arun K. Tangirala (2015), \emph{Principles of System Identification:
Theory and Practice}, CRC Press, Boca Raton. Sections 16.5 and 20.4
}
-\seealso{
-\code{\link[sapa]{SDF}}
-}