search for: param_list

Displaying 4 results from an estimated 4 matches for "param_list".

2018 Feb 15
2
package MonteCarlo error: object 'packages' not found
...est_kud_fun<-function(x,A,B){ +?? equation1=exp(A-(B*x)) +?? return(list("equation1"=equation1)) + } > x_grid<-c(0.5,10) #distances kudzu could grow > A_grid<-rnorm(1000) #probabilities > B_grid<- rnorm(1000) #probabilities > #put parameters in a list > param_list_kud=list("x"=x_grid, "A"=A_grid, "B"=B_grid) > #run MC simulation > MC_result_kud<-MonteCarlo(func=infest_kud_fun,nrep=10000,param_list=param_list_kud) Error in MonteCarlo(func = infest_kud_fun, nrep = 10000, param_list = param_list_kud) : ? object '...
2018 Feb 15
0
package MonteCarlo error: object 'packages' not found
...=exp(A-(B*x)) > + return(list("equation1"=equation1)) > + } > > > > x_grid<-c(0.5,10) #distances kudzu could grow > > A_grid<-rnorm(1000) #probabilities > > B_grid<- rnorm(1000) #probabilities > > > > #put parameters in a list > > param_list_kud=list("x"=x_grid, "A"=A_grid, "B"=B_grid) > > > #run MC simulation > > MC_result_kud<-MonteCarlo(func=infest_kud_fun,nrep=10000, > param_list=param_list_kud) > Error in MonteCarlo(func = infest_kud_fun, nrep = 10000, param_list = > param_l...
2013 Sep 10
1
[LLVMdev] function creation question
I have an AST, and I walk it to generate llvm-IR. For function definitions, I need to be able to generate functions : vector<datatypes> foo (param_list) i.e. my return value is a vector of different datatype.s, similar to the param list. My question is, what do i put my elelment type in the vector? It can be a vector of any of the element types.. i.e. the first value can be a float, the second char* etc.. VectorType* vt = VectorType::get(..) Fun...
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...l symbol for the key you want to use + # TODO: add checking to make sure this is a symbol, possibly as simple as adding a + # to_sym, just not sure what happens if it is already a symbol + def sort_link_helper(text, param, key = :sort) + param += " DESC" if params[key] == param + param_list = params.clone + param_list[key] == param ? param_list[key] = param += " DESC": param_list[key] = param + link_to(text, :action => 'index', :params => param_list) + end +end diff --git a/src/app/views/cloud/dashboard/index.rhtml b/src/app/views/cloud/dashboard/index.r...