Displaying 1 result from an estimated 1 matches for "theta1_set1".
2012 Sep 13
1
problem creating an array
...ld be
appreciated and my code is pasted below:
#========================================================================
#landscape changes
#========================================================================
##generate 3 sequences, each of length n=21; sequences named theta"n"_set1
theta1_set1=c(seq(0,1,0.005))
seqa=c(seq(0,0.50,0.005))
seqb=c(seq(0.495,0,-0.005))
theta2_set1=c(seqa,seqb)
seqc=c(seq(1,0,-0.01))
seqd=c(rep(0,100))
theta3_set1=c(seqc,seqd)
sum=numeric()
for (i in 1:201)
{ sum[i]= theta1_set1[i]+theta2_set1[i]+theta3_set1[i]
}
sum
#"n" designates the number of ran...