Displaying 20 results from an estimated 700 matches similar to: "How generate random numbers from given vector???"
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 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
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
2017 Dec 14
3
Rewrite Outgoing Number
Hello,
I am new on asterisk and do some tests on freepbx.
I have 2 SIP provider:
Provider1: In-/Out- Flatrate, only 1 Number
Provider2: Incoming Flatrate, Outgoing Cost depend on destination, 3 numbers
On Asterisk site i have 3 phones
(branch ??, don't know how its called in asterisk)
Is it possible to do something like:
Phone 1: Incoming Call: Number1/Provider1 Outgoing Call:
2017 Dec 14
2
Rewrite Outgoing Number
Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208
asterisk-users-bounces at lists.digium.com wrote on 12/14/2017 09:36:06 AM:
> From: "basti" <mailinglist at unix-solution.de>
> To: asterisk-users at lists.digium.com
> Date: 12/14/2017 09:36 AM
> Subject: Re: [asterisk-users] Rewrite Outgoing Number
> Sent by: asterisk-users-bounces at
2009 Feb 06
1
Tables in legend
I need to create a legend for a simple scatter plot in the following
format.
This is Blah1 number1 number2
This is Blah2 number3 number4
.
.
.
This is Blah6 number11 number12
I looked up these help pages and found the following solution.
lStr<-c(Blah1, Blah2,....Blah6, number 1, number2, ...number12)
legend(x="topright",lStr,ncol=3)
So this creates the tabular format I am
2007 Oct 09
1
Error: 603 declined
I have Asterisk 1.2.13 installed as a Debian package and I edit only
sip.conf and extensions.conf in this way:
sip.conf:
[general]
realm=work.com.ar ; Realm for digest
authentication
bindport=5060 ; UDP Port to bind to (SIP standard port
is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds
to all)
srvlookup=yes
2008 Feb 21
2
column name handling and long labels
Hi,
I have two loosely related questions which could make
my live again a bit easier:
1) Is there a simple way to select a range of columns
in a data frame using column names?
I am thinking of something like mydf[1,"col4":"col8"]
2) I have a data frame with many columns and they all
have short variable names which is good in most cases
but sometimes it would be nice to have
2004 Aug 16
1
linux, XP, and samba
Can any suggest why the mount failed? The IP address of number1 is
192.168.0.1. Here's the script:
Thank you.
Script started on Mon Aug 16 12:49:14 2004
[root@number4 root]# smbclient -L number1
added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
Password:
Domain=[HOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
2005 Aug 09
2
Load Testing
Guys.
How and which tools to use to load test an asterisk install? Say for
example, you need to see how many calls can be routed thru before losing
quality and making the cpu jump to the roof?
2013 Jan 04
4
Iterative loop using "repeat"
Hi,
I'm Marianna
I'm trying to apply the command "repeat" to my matrix but the repeat process
doesn't work as I would.
In particular I would like to apply the function robustm () _that I have
created_ to my two matrices, if the difference between the two matrices is
less than 0.001, R give me back the last matrix.
The code thus created allows me to repeat the process only
2003 Nov 16
2
two X100P cards, different context
Hi,
I have two X100P cards in the same system.
I can use both of them to initiate and/or receive PSTN calls.
I want now to define separate context for each of them, in oder to route
inbound calls to different extensions.
This is what I have now in zapata.conf file:
[channels]
language=en
context=inbound-analog
signalling=fxs_ks
usecallerid=yes
callwaiting=yes
echocancel=yes
2009 Sep 30
1
How to finish a Meetme
Hi people, I want to make a meetme between 2 numbers.
First I enter the number1 into the meetme. It is waiting for the other number, but the other number never entered, so, how can I finish the meetme from the dialplan?. Is it posible by using MeetmeAdmin and kick all the users?
Thanks,
Anahi Ludue?a
_________________________________________________________________
Descubre
2011 Feb 13
1
Call Files, Variable passing
Hi,
I am having trouble passing variables via the call files, here is my call
file via the php:
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Events: off\r\n");
fputs($oSocket, "Username: $strUser\r\n");
fputs($oSocket, "Secret: $strSecret\r\n\r\n");
fputs($oSocket, "Action: originate\r\n");
fputs($oSocket,
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:
2008 Jul 18
1
Calculating Betweenness - Efficiency problem
Hello,
I am calculating 'Betweenness' of a large network using R. Currently, I have the node-node information (City1-City2) in an excel file, present in two columns where column A has City1 and column B has City2 that city1 is connected to. These are the steps that I go through to calculate betweenness of my network.
a) Convert the City1-City2 (text) into Number1-Number2 in the excel
2007 Apr 16
1
Instability on Asterisk
Hi guys,
I have an asterisk box with sip 20 internal extensions and 100 lines
registered on a external voip provider.
For most part of time, it work fine, but in few moments it act
ignoring sip packets becouse my ip phones can't register in asterisk
and asterisk can't register his 100 lines in external voip provider.
I have log's only for external registration error:
[Apr 16
2006 Feb 23
2
Incoming/Outgoing call question
Hey everyone,
I have a more of an opinion question then a technical question. The
asterisk server I am setting up is going to host 3 different businesses.
Each business is in the same building, and on the same network. My
question is regarding calls coming in and going out. We are a small ISP
and have a lot of numbers that are forwarded to our phone system. The
other companies have about 3