search for: rate1

Displaying 11 results from an estimated 11 matches for "rate1".

Did you mean: rate
2012 Mar 15
2
Integrate inside function
Dear R users, first I take this opportunity to greet all the R community for your continuous efforts. I wrote a function to calculate the pdf and cdf of a custom distribution (mixed gamma model). The function is the following: pmixedgamma3 <- function(y, shape1, rate1, shape2, rate2, prev) { density.function<-function(x) { shape1=shape1 rate1=rate1 shape2=shape2 rate2=rate2 prev=prev fun<-prev*((rate1^shape1)/gamma(shape1)*(x^(shape1-1))*exp(-rate1*x)) + (1-prev)*((rate2^shape2)/gamma(shape2)*(x^(shape2-1))*exp(-rate2*x)) return(fun) }...
2009 Dec 26
1
Reading Input file
Dear R helpers   I have some files in my say 'WORK' directory and the file names are say rate1.csv, rate2.csv, rate3.csv, rate4.csv   Because of some other requirement, I need to run the following commands   n = 4    rates = NULL   for (i in 1:n) rates[i] = (paste(`rate', i, ‘.csv`, sep = ‘’))   # this gives me "rate1.csv" "rate2.csv" and so on   #My problem is now...
2006 Jan 04
3
TC/CBQ shaping problems
...and 2001) WHAT I WANT TO DO: 1. Traffic from 10.0.0.103 to 10.0.0.102 port 2000 should always receive at least 60Mbit/s regardless of presence of other traffic. 2. In the absence of traffic to 10.0.0.102 port 2000, all other traffic should use all available bandwidth CBQ SETUP 1: #!/bin/bash # rate1 = 60Mbit/s RATE1=614400000 PRIO="prio 1" DEV="dev eth0" OPTION="allot 1514 maxburst 20 avpkt 1000" # reset qdiscs tc qdisc del $DEV root # root CBQ tc qdisc add $DEV root handle 10: cbq bandwidth 100mbit avpkt 1000 # 60 Mbit/s class tc class add $DEV parent 10:0 cla...
2009 Dec 28
2
Modified R Code
Dear R helpers,   I have following input files. (Actually they are more than 10 rates but here i am considering only 2 rates to write my problem)   rate1.csv min1        max1            min2          max2          min3           max3 1.05        1.30               1.30          1.65             1.65          1.99   rate2.csv min1        max1            min2          max2          min3           max3 2.05        2.30               2.30          2.65 ...
2011 Jan 07
0
Odp: Currency return calculations
...recheza.cz> wrote: From: Petr PIKAL <petr.pikal@precheza.cz> Subject: Odp: Currency return calculations To: "Amelia Vettori" <amelia_vettori@yahoo.co.nz> Cc: r-help@r-project.org Received: Friday, 7 January, 2011, 12:59 PM Hi What is wrong with my suggestion then. > rate1       USD    GBP  EURO   CHF    AUD 1  112.05 171.52 42.71 41.50 109.55 2  112.90 168.27 42.68 41.47 102.52 3  110.85 169.03 41.86 42.84 114.91 4  109.63 169.64 44.71 43.44 122.48 5  108.08 169.29 44.14 43.69 122.12 6  111.23 169.47 44.58 42.30 123.96 7  112.49 170.90 41.07 42.05 100.36 8  108.87 1...
2003 Aug 18
1
Remarking non conformant packets as AF13 from AF11
...to implement a simple scaled-down version of the AF traffic class type. As such I basically want to remark non-conforming AF11 packets to AF13. Here is m script that I have been using on the ingress router of my network: ---------------------------------------- Link=''dev eth1'' Rate1=''rate 800Kbit'' Rate2=''rate 2500Kbit'' Burst=''burst 9K'' Action=''continue'' Match1=''match ip src 192.6.0.90 match ip dst 10.37.1.63 match ip sport 6970 0xffff match ip protocol 17 0xff'' Match2=''match i...
2000 Nov 09
2
simple mixture
Dear All, I am trying to do some simple mixture analyses. For instance, I have a sample of n observations and I suspect they come from two different exponential distributions with parameters rate1 and rate2, respectively. So, I want to estimate rate1, rate2, and the proportions of both kinds of individuals in the sample. I had a look at the packages mda and mclust, but they do not seem to do this kind of analysis. Has anybody tried to program such simple mixture analysis in R? Also, I am in...
2011 Jan 07
1
Currency return calculations
Dear sir, I am extremely sorry for messing up the logic asking for help w.r.t. my earlier mails   I have tried to explain below what I am looking for.     I have a database (say, currency_rates) storing datewise currency exchange rates with some base currency XYZ.   currency_rates <- data.frame(date = c("12/31/2010", "12/30/2010", "12/29/2010",
2011 Jan 07
1
Calculating Returns : (Extremely sorry for earlier incomplete mail)
Dear R forum helpers, I am extremely sorry for the receipt of my incomplete mail yesterday. There was connectivity problem at my end and so I chose to send the mail through my cell, only to realize today about the way mail has been transmitted. I am again sending my complete mail through regular channel and sincerely apologize for the inconvenience caused. ## Here is my actual mail Dear R
2009 Jul 28
1
Sort a dataframe on the column Date
Dear Users I have a dataframe called mydata4 of the following order with the first column as a date and the rest of the columns are numeric with rate. Column 1 Rate1 : Rate 20 (PxMid) 01/01/2003 07/01/2001 ---- ---- -- I wish to sort this dataframe on the first col in ascending order. I tried to do the following mydata4<-mydata4[,order(mydata4$PxMid)] This give an error. Please help. Regards Meenu [[alternative HTML version deleted]]
2004 Jul 09
3
tc filter + bridging + htb -- works only if ip_forward = 0
...ess # bandwidth, and in turn 1:10,20 and 30 then fight for any excess above their # minimum rates. # ceil is 90% of max rate (768kbps) # rate is 80% of max rate # we don''t let it go to 100% because we don''t want the WAN provider to buffer CEIL=4500kbit RATE1=1000kbit RATE2=3000kbit RATE3=500kbit APPRATE1=1500kbit APPRATE2=750kbit APPRATE3=250kbit $TC qdisc ${TCOP} dev ${WAN} root handle 1: htb $TC class ${TCOP} dev ${WAN} parent 1: classid 1:1 htb rate ${CEIL} ceil ${CEIL} $TC class ${TCOP} dev ${WAN} parent 1:1 cla...