search for: param2

Displaying 20 results from an estimated 90 matches for "param2".

Did you mean: param
2007 Feb 15
17
Odd parameter munging with with()
Hi, I have this setup block: setup do session[:login] = ''jhughes'' @user = mock("user") User.stub!(:find).and_return(@user) @params = {:cn => "Bilbo Baggins", :telephoneNumber => "416-277-4418", :mail => "bilbo at baggins.com"} end And then this spec: specify "should update and save the
2008 Jun 12
1
XML parameters to Column Headers for importing into a dataset
Dear List, Do you know any way I can convert XML parameters into column headers. My data is in a csv file with each row containing a xml form of data , and multiple parameters ( <param1> data_val1 </param2> , <param2> data_val2 </param2> ) I want to convert it so each row caters to one record and each parameter becomes a different column. param1 param2 Row1 data_val1 data_val2 What is the most efficient way for doing this. Apologize for th...
2010 Sep 21
2
multiplying values in data frame by corresponding value in the first column
...o mutliply each observation in all the other columns of the data frame by the corresponding value in the given column. I played with apply, and saw some suggestions for sweep, but did not manage to get it working. My table contains NAs.... Example of table as data frame Observation Group Param1 Param2 AA 1 3 4 BB -1 5 6 Expected result: Observation Group Param1 Param2 AA 1 3 4 BB -1 -5 -6 group<-as.vector(table$Group) I extracted the first column into a vector, and am looking...
2009 May 13
0
[LLVMdev] using bugpoint
I am trying to use bugpoint to reduce the bytecode for a bug in one of my transformations. Normally I run opt as such: opt -load=libmine.so -mypass -param1 -param2 -o b.bc a.bc Here, -mypass specifies a pass and -param1 and -param2 are just parameters that -mypass uses. I added them using the command line parsing library that llvm supports. I tried running bugpoint with the following: bugpoint -load=libmine.so a.bc -mypass -param1 -param2 However, bug...
2008 Mar 10
5
Passing extra parameters to functions called from Observers
...validateForm'' function is called and is automagically passed the ''event'' to work with. This is fantastic! But is there a way to pass another argument to the function? Something like: $(''myForm'').observe(''submit'', validateForm, param1, param2); etc? Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscrib...
2007 Nov 19
3
link_to and GET parameters
Hi, I am trying to generate a link to external site with GET parameters ( in new window). I tried following code, but it does not produce any parameters. <%=link_to "Open New Page", "https://www.foo.com/page/", {:popup => true}, {:param1 => "value1", :param2 => "value2"}%> and <%=link_to "Open New Page", url_for("https://www.foo.com/page/", {param1 => "value1", :param2 => "value2"}) , {:popup => true}%> Can anyone tell me what is wrong with my code or there is a alternative way?...
2008 Jun 11
2
MLE Estimation of Gamma Distribution Parameters for data with 'zeros'
...tting distributions with R). Basically, I got the same result as using fitdistr(). Finally I tried using some R code I found from someone with a similar problem back in 2003 from the archives of this mailing list: R code ######################################## gamma.param1 <- shape.mom gamma.param2 <- scale.mom log.gamma.param1 <- log(gamma.param1) log.gamma.param2 <- log(gamma.param2) gammaLoglik <- function(params, negative=TRUE){ lglk <- sum(dgamma(data, shape=exp(params[1]), scale=exp(params[2]), log=TRUE)) if(...
2008 Apr 15
0
routing problem: map.testroute ":param1/:param2-:param3-:param4.html"
hi, I''m trying to create meaningful urls with routing extracting all params as specified: map.testroute ":param1/:param2-for-:param3.html" However this approach totally fails - it says Routing Error, No route matches "/aaaa/bbbb-for-ccc.html" with {:method=>:get} Then while browsing source code and some googling I''ve found that there is sth called ActionController::Routing::SEPARATORS s...
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb # plug-in support for Camping Apps # require ''lib/camping_plugin'' # override R helper method to your liking :-) module Camping module PluginHelpers def R_with_module(c,*g) p,h=/\(.+?\)/,g.grep(Hash) g-=h raise "bad route" unless u = c.urls.find{|x| break x if x.scan(p).size == g.size &&
2005 Oct 06
8
accessing extra request parameters
hi all, how are other people passing and accessing ''get'' parameters from their apps? what is the best way to do it? ie: www.example.com/controller/action/id/extra/extra2/ ?? or www.example.com/controller/action/id/~extra/extra2/ or what ever.... are there built in methods for passing and accessing extra parameters? thanks for your suggestions -felix
2007 Nov 01
1
structure data
...ral ways. The processing is dependent on grouping (factors) and the parameter itself. Meaning for parameter1 in the df, I would like to calculate the mean and sd when grouping by factor1. But parameter2 might be different. I thought of a structure like this: group1 param1 (mean, sd) param2 (sum) group2 param1 (mean, sd, median) param2 (mean, sd) I'm not sure how to build up this "processing info" structure. (The processing itself will be later based on this structure). Would you use a list? (matrix and vector are not so flexible for different length....
2011 Feb 16
1
Rjdbc dbGetquery execution error
Rjdbc consistently gives me an execution error with postgresql 9.0s JDBC4 driver. It's probably something trivial so am including my code below: library("RJDBC") param <- 249 param2 <- 188129 postgres <- JDBC("org.postgresql.Driver", ".m2/repository/postgresql/postgresql/9.0-801.jdbc4/postgresql-9.0-801.jdbc4.jar") con <- dbConnect(postgres, "jdbc:postgresql://hq.d8u.us/erm", user = "hdiwan") sql <- "select id, startdate...
2008 May 28
1
Search&replace string?
...know if it is possible to modify a text file with a R function. In fact I would like to know if a function "Search & Replace" exists. My problem is to create config files from a Base file in which I have to modify values of parameters. My Base File: #... #... Param1= V1_1 #... Param2 = V2_1 Param3 = V3_1 #... What I would like for each created file i: #... #... Param1= V1_i #... Param2 = V2_i Param3 = V3_i #... For the moment my solution is to read each line of the config file, modify if needed the line and recopy it in the new file. But the problem is that my file is ab...
2012 Feb 02
3
MVC questions with rails
2012 Dec 13
1
PLEASE REMOVE FROM LIST SERVE NOW!
PLEASE REMOVE ME FROM THIS LIST SERVE IMMEDIATELY!!!!!! On Wed, Dec 12, 2012 at 6:41 PM, dada <paxkn@nottingham.ac.uk> wrote: > Hi > I would like to do neural netowrk analysis on my data. It look like this: > > drug param1 param2 param3 param4 param5 class > A 111 15 125 40 0.5 1 > B 347 13 280 55 3 2 > C 335 9 119 89 -40 1 > D 477 37 75 2 0 1 > E 863 24 180 10 5...
2006 Sep 15
3
How to catch a parameter that contains a full url
Hi I need some help! I have controller that I need to pass a full url (with its own parametrs) as a parameter, e.g. I want to call my controller with: /mycontroller/catchurl?url=http://somedomain.com/afile.jsp?param1=xx&param2=yy and in action "catchurl" in mycontroller.rb I would like to have params[:url] to be "http://somedomain.com/afile.jsp?param1=xx&param2=yy" I guess that one could do something smart with map.connect but so far I have failed completely. Is there anyone that can give me so...
2012 Jun 25
3
Loop for multiple plots in figure
...o in this case, there would be four plots on the page (one each for Bob, Steve, Kevin and Dave), and each plot would have two separate curves (one for param1 = 1 and one for param1 = 0). The main title of the plot should be the subject name. I also need to sort the order of the plots on the page by param2. I can do this with a small number of subjects using manual commands. For a larger number I know that a 'for loop' is called for, but can't figure out how to get each of the subjects to plot separately, could not figure it out from the existing posts. For now I want to do this in the...
2003 May 28
3
Slow computation in for loop
...on a set of parameters of a function. This function is included in three for() loops, first one for replications, and the remaining two cycling through possible parameters values, like this : for (k in replicates) { data <- sampling from a population for (i in param1) { for (j in param2) { result <- function(i, j, data) } } } With the 'hardest' set of parameters, a single computation of the function take about 16s on an old Sun Sparc workstation with 64 Mb RAM and don't access a single time to disk. But when I launch the for() loops (which genera...
2012 Feb 14
7
inherits from parametrized class
Hello In is possible inherits from parametrized class?? For example i have base php52 class like this: class linux::php52($pools, $extensions='''') inherits linux { ...... } and whants to inherit it like this: class linux::php52::cluster inherits linux::php52 for cluster configuration (cluster stuff -f for example prevent php from automatic startup), and class
2008 Jul 25
0
nlminb--lower bound for parameters are dependent on each others
...sets of equations (each set has four equations and all of them share common parameters) with nlminb procedure. I minimize one set and use their parameters as initial values of other set, repeating this until their parameters become very close to each other. I have several parameters (say,param1, param2) and their constraints are given as inequality and depend on each other. For example, param1>=0, param1 + param2*c1>=0 (c1 is a known positive constant) When I wrote my program as: ... myfunction1 <-function(param ){..} myfunction2 <-function(param ){..} #param1=param[1] #param2=p...