search for: bid

Displaying 20 results from an estimated 299 matches for "bid".

Did you mean: bind
2006 Jul 02
2
nil.- what the heck...
Okay first off here''s the error: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.- Here''s the code in the model: def highest_bid @bid = nil @oldbid = 0 self.bids.each do |bid| if @bid == nil @bid = bid.max else if bid.max > @bid @oldbid,@bid = @bid,bid.max end end end @oldbid += 1 @dif = @bid - @oldbid if @oldbid != 0 @bid -= @dif if @oldbid != 0 @bid end Two questions: Is there an ea...
2006 Jul 06
2
@oldbid = 0 why?
Okay I''ve been working on a little biding system. In my model I have class Item < ActiveRecord::Base has_many :bids def highest_bid @bid = 0 self.bids.each do |bid| if @bid == nil @bid = bid.max else if bid.max > @bid @oldbid,@bid = @bid,bid.max end end end if @oldbid == 0 "#{@bid} - #{@ol...
2010 Oct 04
3
Loop too slow for Bid calc - BUT cannot figure out how to do with matrix
Hi, I am trying to create Bid/Ask for each second from a high volume stock and the only way I have been able to solve this is using loops to create the target matrix from the source tick data matrix. Looping is too slow and not practical to use on multiple stocks. For example: Bids Matrix (a real one is 400,000++ length): B...
2006 Nov 17
2
Data table in C
After getting one list done, I am now struggling to form a data frame in C. I tried to do a list of lists which gives me : $<NA> $<NA>[[1]] [1] "BID" $<NA>[[2]] [1] 0.6718 $<NA>[[3]] [1] 3e+06 $<NA> $<NA>[[1]] [1] "BID" $<NA>[[2]] [1] 0.6717 $<NA>[[3]] [1] 5e+06 $<NA> $<NA>[[1]] [1] "BID" $<NA>[[2]] [1] 0.6717 $<NA>[[3]] [1] 17200000 and then as.dat...
2012 Mar 25
2
Weird POSIXct behaviour
Friends I have an xts that I wish to access. Browse[2]> DATA.ba[[p]]["2012-03-20 00:59:57","bid"] bid 2012-03-20 00:59:57 1.4993 So far so good. Now putting the index into a variable: Browse[2]> Time [1] "2012-03-20 00:59:57 NZDT" Browse[2]> DATA.ba[[p]][Time, "bid"] bid Where has it gone? Looking closer.... Browse[2]> inde...
2012 Jul 09
1
Using the effects package
...However, I'm wonder if I can use the effects package to plot the probabilities on the y axis and one predictor on the x axis, with the curve having the info for another predictor. So let's say our response variable is win, a binary variable. There are two predictors, home (categorical) and bid (continuous). For both home and bid, I want to generate plots showing the predicted probabilities for all the "levels" of that variable. For bid, that means the probability for winning at all bid levels. For home, the curve for the probability for winning at each level. df <- data.fr...
2007 Mar 20
0
Open New orders from Asia Sourcing
Dear Seller, Check for today's new open orders on asia sourcing now and get your deals! Buy steel security door, steel wood door and interior solid wood door (15,000) from CN http://asia-sourcing.net/wbid.html?bid=167599 Buy Citric Acid, ... (200 MT per month) from MD http://asia-sourcing.net/wbid.html?bid=167597 Buy HYDRAcap - Ultrafiltration Membrane Sys. (for 75 m3/hr) from IR http://asia-sourcing.net/wbid.html?bid=167596 Buy Compound Ketoconazole Cream, (12 vials) from GB http://...
2012 Aug 08
1
Calculating percentages across multiple columns
I have the following data and am trying to find the percentage of bid values purchased for that price. So let's say I have a bid of 5 and it's sold 2 times for $3 and $5. Since the original bid was $5, the percentage of times that that bid value results in a sold purchase AT that specific bid level was 1/3 because of the three time where the bid was three, i...
2004 Feb 19
1
reshape direction=wide
Hello I am reshaping a data.frame bids --> reshaped as shown below. I thought this should be possible with a single invocation of reshape, but the only way I came up with is reshaping subsets for each keyword and then joining them together. Does anyone have an idea how to solve this in a more elegant way? Efficiency is a concern as...
2012 Jul 05
2
Plotting the probability curve from a logit model with 10 predictors
I have a logit model with about 10 predictors and I am trying to plot the probability curve for the model. Y=1 = 1 / 1+e^-z where z=B0 + B1X1 + ... + BnXi If the model had only one predictor, I know to do something like below. mod1 = glm(factor(won) ~ as.numeric(bid), data=mydat, family=binomial(link="logit")) all.x <- expand.grid(won=unique(won), bid=unique(bid)) y.hat.new <- predict(mod1, newdata=all.x, type="response") plot(bid<-000:250,predict(mod1,newdata=data.frame(bid<-c(000:250)),type="response"), lwd=5, col=&...
2005 Jun 25
2
observing a habtm association
Is there some way to observe when an association is added in a habtm relationship? I know I could turn the relationship into a model, but I don''t want to give up using :include in my finds... joshua
2006 Jul 03
0
Check if row already exists?
I''m working on a system that has a series od "bids" associated with "posts". Vurrently when a bid is placed I have it creating a new row each time in the "bids" table. The bids table has id, post_id, and user_id. The logic is to check to see if a bid already exists with a given post_id and user_id. If it does, then ju...
2012 Sep 15
4
how to view only readings of a selected data from a column while the other columns remain
Hi Friends I am new here and have a problem Year Market Winner BID 1 1990 ABC Apple 0.1260 2 1990 ABC Apple 0.1395 3 1990 EFG Pear 0.1350 4 1991 EFG Apple 0.1113 5 1991 EFG Orange 0.1094 For each year and separately for t...
2006 Nov 21
1
Is there any way to know when a field is blank
....00000,,105.59000000 2004-02-10 00:03:25.00000,,105.60000000 2004-02-10 00:03:39.00000,,105.59000000 2004-02-10 00:03:52.00000,,105.60000000 2004-02-10 00:03:54.00000,,105.60000000 # LINES OF CODE fxdata<-read.zoo(file=fxfile,FUN=as.POSIXct,sep=",",col.names=c("date"," bid","ask")) fxdata<-fxdata[( fxdata[,"bid"] > 0.0 ) & ( fxdata[,"ask"] > 0.0 ),] aggfxdata<-as.zoo(aggregatebyminutes(zooobj=fxdata,aggtimeframe=aggtimef rame)) #======================================================================= ===============...
2006 Jul 01
3
Where to solicit bids on RoR project?
Where is the best place to solicit bids on a mid-size web app? (budget ~$15,000) What is the appropriate protocol for posting RoR RFPs? Thanks! Taylor -- Posted via http://www.ruby-forum.com/.
2006 Oct 28
1
update on my weird problem
...---------------------------------------------------- ------------------------------------------------------------------------ ---------------------------------- fxdatab<-structure(c(0,4,0,4,0,4,0,4),.Dim=c(4,2),.Dimnames = list(c("1","2","3","4"),c("bid","ask")), index=structure(c(1144049400,1144049400,1144049400,1144050402),class=c(" POSIXt","POSIXct"),tzone = ""),class="zoo") print(fxdatab) fxdatab<-fxdatab[(( fxdatab[,"bid"] > 0.0 ) & ( fxdatab[,"ask"] &gt...
2017 Dec 01
2
Using Scalar Evolution to Identify Expressions Evolving in terms of Loop induction variables
...load and store instructions) in terms of the loop induction variables. I observe that the Scalar Evolution analysis is returning more expressions than I expect - including ones that are not defined in terms of the loop induction variable. For instance in the following code: for(unsigned long int bid = 0; bid < no_of_queries; bid++){ unsigned long int currNode = no_of_nodes / 2; // process levels of the tree for(int i = 0; i < logN; i++){ if((knodes[currNode].key) > keys[bid]){ currNode = knodes[currNode].left_id; } else if ((knodes[currNode].key...
2003 Jan 21
2
WARNING : no network interfaces found.
...workgroup = TRIDENTMUMBAI security = domain password server = 10.160.128.152 netbios name = smbsys interfaces = 192.168.1.225 encrypt passwords = yes -- Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy the best in Movies at http://www.videos.indiatimes.com Now bid just 7 Days in Advance and get Huge Discounts on Indian Airlines Flights. So log on to http://indianairlines.indiatimes.com and Bid Now!
2005 Feb 08
2
Data manipulation
...to 8bit by hypatia.math.ethz.ch id j186djX0017423 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on hypatia.math.ethz.ch X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50 autolearn=no version=3.0.2 Hi R-friends, i have large dataset in the following structure: BID;TERRCODE;ANMCODE 200310413290002;4;0 200310413290002;80;0 200310413290002;2;0 200310413290002;5;0 200310413290003;3;0 200310413290003;1;0 200310413290003;11;0 200310413290003;26;0 200310413290003;141;21 200310413290003;472;0 200310413290004;3;0 200310413290004;1;0 200310413290004;7;0 20031041329000...
2010 Mar 08
2
Data.frame issue (pls help)
Hi: I want to obtain a particular value from a data.frame. Following is my dataframe: > Quotes BID ASK Name CT2 GOVT 99.92969 99.9375 CT2 TUM0 COMDTY 108.53125 108.5469 TUM0 CT5 GOVT 100.10156 100.1094 GT5 FVM0 COMDTY 115.56250 115.5703 FVM0 TYM0 COMDTY 116.93750 116.9531 TYM0 If I try to run: QuoteTUM0BID = Quotes[Quotes$Name %in% "TUM0", "BID"]...