AdrienPoupa / soen6611

Software Measurement project
1 stars 3 forks source link

Arithmetic Mean #11

Closed Himalayayadav444 closed 6 years ago

Himalayayadav444 commented 6 years ago

X <- runif(100,0,100) #Generate Random numbers DSMean = 0 for (i in 1:NROW(X)) #NROW() gives the lenght of dataset { DSMean <- DSMean + X[i] } DSMean = DSMean/NROW(X) DSMean mean(X)