EOF(spacetime)
EOF()所属R语言包:spacetime
Compute spatial or temporal empirical orthogonal function (EOF)
计算时间或空间的经验正交函数(EOF)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute spatial or temporal empirical orthogonal function (EOF)
计算时间或空间的经验正交函数(EOF)
用法----------Usage----------
EOF(x, how = c("spatial", "temporal"), returnPredictions = TRUE, ...)
参数----------Arguments----------
参数:x
object of class STFDF
对象的类STFDF
参数:how
character; choose "spatial" or "temporal" mode
性格;选择"spatial"或"temporal"模式
参数:returnPredictions
logical; if TRUE, the functions are returned (i.e., predicted principle components, or PC scores); if FALSE, the object returned by prcomp is returned, which can be printed, or from which a summary can be computed; see examples.
逻辑,如果为TRUE,函数的返回(例如,预测的主要成分,或PC分数);如果为FALSE,则返回,返回的对象由prcomp,可以打印,或从其中可以计算的总结,看到的例子。
参数:...
arguments passed on to function prcomp; note that scale.=TRUE needs to be specified to obtain EOFs based on correlation (default: covariance)
参数传递的功能prcomp;注意,scale.=TRUE需要指定相关性的基础上获得的EOF(默认:协方差)
值----------Value----------
In spatial mode, the appropriate Spatial* object. In temporal mode, an object of class xts.
在空间模式的合适的Spatial*的对象。在时间模式中,一个对象的类xts。
实例----------Examples----------
if (require(gstat)) {
data(wind)
wind.loc$y = as.numeric(char2dms(as.character(wind.loc[["Latitude"]])))
wind.loc$x = as.numeric(char2dms(as.character(wind.loc[["Longitude"]])))
coordinates(wind.loc) = ~x+y
proj4string(wind.loc) = "+proj=longlat +datum=WGS84"
# match station order to names in wide table:[赛站,以宽表中的名称:]
stations = 4:15
wind.loc = wind.loc[match(names(wind[stations]), wind.loc$Code),]
row.names(wind.loc) = wind.loc$Station
wind$time = ISOdate(wind$year+1900, wind$month, wind$day, 0)
space = list(values = names(wind)[stations])
wind.st = stConstruct(wind[stations], space, wind$time, SpatialObj = wind.loc)
wind.eof.1 = EOF(wind.st)
wind.eof.2 = EOF(wind.st, "temporal")
wind.eof.1.PCs = EOF(wind.st, returnPredictions=FALSE)
EOF(wind.st, "temporal", returnPredictions=FALSE)
summary(EOF(wind.st, returnPredictions=FALSE))
summary(EOF(wind.st, "temporal", returnPredictions=FALSE))
plot(EOF(wind.st, "temporal", returnPredictions=FALSE))
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|