Displaying 1 result from an estimated 1 matches for "ps_value".
Did you mean:
s_value
2009 Dec 22
2
Nested For loops
...-read.table(infile)
data_value <- data[,-1]
data_value_mean <- mean(data_value)
data_value_square <- (data_value - data_value_mean) ^ 2
square_sum<-sum(data_value_square)
entry<-NROW(data_value)
deno<-square_sum/entry
tab1<-c()
tab2<-c()
ps_value <- seq(0,(floor(entry/2)),1)
for(k in 0:(floor(entry/2))){
for (i in 1:(entry-k)) {
mult<-(data_value[i] - data_value_mean) * (data_value [i+k] - data_value_mean)
tab1 <- c(tab1,mult)
}
auto_avg<-mean(tab1)
tab1<...