search for: yerlan_

Displaying 7 results from an estimated 7 matches for "yerlan_".

Did you mean: erlang
2012 Oct 22
5
Help plz to fix it
I have an array of probabilities....it is p. So if user types x=1 then probability is p1=1/10. If user types x=2 it means that p2= p1+p2 if user types x=3 it means that p3=p1+p2+p3....and so on. So i created a code..... but it doesnt work properly. Help me plz to fix it) Thank u in advance. psidp=function(x){ p<-(1/10 2/5 2/5 2/5 2/5 1/10 1/10 1/10 1/10 1/10) i==0; if (x!=0){ for
2012 Oct 21
3
Help me please to code....
User has to type (input) x. After input....code has to check X with statement if There is a statement IF. If X=0 then Y=5/2 else =7; How to code it please. I tried but my code does not work ;( I wanna see how it looks like( thank u in advance( -- View this message in context: http://r.789695.n4.nabble.com/Help-me-please-to-code-tp4646932.html Sent from the R help mailing list archive at
2012 Oct 25
3
How generate random numbers from given vector???
I wanna generate random numbers from a vector... for example number<-c(0,1,3,4,5,6,8) so rsidp<-function(x){ i=0 for (i in seq(1:x)) {y<-sample(number,x, replace=T)} return(y) } so all random numbers have to be from vector "number"; so if I type rsidp(5)..... it has to give me 5 random numbers except 2,7,9 (because they are not in the vector "numbers"). help
2012 Oct 26
1
Why my code does not draw? how to fix it? plz....
number<-c(0,1,3,4,5,6,8) rsidp<-function(x){ i=0 {y<-sample(number,x,replace=TRUE)} return(y) } plot(o, xlim=c(0,20), ylim(0,20), type="n", xlab="Sample size", ylab="Sample variance") for (i in seq(1:20)){ retVal=rsidp(i) var(rsidpVector) points (i, var(rsidpVector),pch=i,col=i) } -- View this message in context:
2012 Nov 18
1
How to fix it?
Gives a mistake that "probability" is not found x<- runif(1,0,1) y<-x^5+x^8+(cos(x))^3 yrandom<- runif(10,0,3) if (y<yrandom) {probabibility=y/yrandom} area=probability*3 -- View this message in context: http://r.789695.n4.nabble.com/How-to-fix-it-tp4649955.html Sent from the R help mailing list archive at Nabble.com.
2012 Nov 18
1
Decimal places
I am a beginner in programmin in general and R specifically. I would like to generate a set of random numbers in a normal distribution but to limit the decimal places in these numbers to only 2. I have been using x1 <- runif(1,0,1) to generate my numbers. Can I add something to it to enable me to only get results rounded off to 6 decimal places? -- View this message in context:
2012 Oct 26
3
wanna create all points.....
Plz help me ;(( I lost 7 hours for thinking and doing this code ;( I need to create points.....20 points(dots). All these dots have to be in one graph... when i run this code....it gives me only one dote..... number<- (0,2,3,4,5,6,8) for (i in seq(1:20)) {rsidpVector=rsidp(i) mean(rsidpVector) plot (length(rsidpVector), mean(rsidpVector), ylab="sample mean", xlab= "sample