Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
每四分之一小时的标准偏差(单位:R)_R_Time Series_Standard Deviation - Fatal编程技术网

每四分之一小时的标准偏差(单位:R)

每四分之一小时的标准偏差(单位:R),r,time-series,standard-deviation,R,Time Series,Standard Deviation,我有电力系统频率的原始数据。86400个数字 frequency=a$Ist_Frq plot.ts(frequency, main="System frequency [Hz]", xlab="Time [s]") 见示例: 现在,我必须确定一刻钟的时间间隔 frequency=ts(a$Ist_Frq, start=1, frequency=900) [quarter-hour time interval][2] 我的问题是: 有没有办法确定每一刻钟的标准偏差 谢谢你的回答。

我有电力系统频率的原始数据。86400个数字

 frequency=a$Ist_Frq

 plot.ts(frequency, main="System frequency [Hz]", xlab="Time [s]")
见示例:

现在,我必须确定一刻钟的时间间隔

 frequency=ts(a$Ist_Frq, start=1, frequency=900)

[quarter-hour time interval][2]
我的问题是:

有没有办法确定每一刻钟的标准偏差


谢谢你的回答。

这个问题可能有几种解决方案:这里有一种

#some data
x <- rnorm(10000)

#identify quarter hour segments 
y <- rep(1:ceiling(length(x)/(15 * 60)), each = 15 * 60)[1:length(x)]

#use tapply to find sd of x for every value of y
tapply(x, y, sd)
#一些数据

这个问题可能有几种解决方案:这里有一种

#some data
x <- rnorm(10000)

#identify quarter hour segments 
y <- rep(1:ceiling(length(x)/(15 * 60)), each = 15 * 60)[1:length(x)]

#use tapply to find sd of x for every value of y
tapply(x, y, sd)
#一些数据

对不起,这是我关于stackoverflowno问题的第一个问题。这就是我们在这里查看帖子的原因。对不起,这是我关于stackoverflowno问题的第一个问题。这就是为什么我们在这里审查帖子。