parameters

deSolve package can parameters include a matrix?

别来无恙 提交于 2019-12-11 06:24:05
问题 I'm trying to code an SEIR model that is age-stratified; that is, in my differential equations I have a parameter for mass action that is the sum of beta*(proportion infected)*(number susceptible) over 20 age classes. The transmission coefficient (beta) is calculated from a contact matrix. The contact matrix has 20 columns and rows which represent the age classes (rows=person i, columns=person j), and contains the probability of contact between two people in any age classes. I designed it and

mod_rewrite - old parameter name to new name

戏子无情 提交于 2019-12-11 06:10:03
问题 Hi all I need a bit of getting a redirect working in mod_rewrite. I need to redirect the following http://mysite.com/dictionary/find?word=test to http://mysite.com/dictionary/find?w=test I'm sure the solution is trivial enough but my knowledge of mod_rewrite and regular expressions is quite limited and I haven't been able to work out. This is what I have attempted so far to no avail. RewriteCond %{QUERY_STRING} word= [NC] RewriteRule ^/(.*)word=(\w+)/$ /w=$1 [L] Any help would be much

SpagoBI OLAP report passing optional parameter

不羁的心 提交于 2019-12-11 06:05:52
问题 Helo. Today is my another fight day with OLAP raport with optional parameter. I have problem with MDX query. I wrote it like this: select NON EMPTY {{[Measures].[VALUE]}} ON COLUMNS, NON EMPTY { IIF(ISEMPTY([CUSTOMER].[${param}]) //CHECKING IF PARAMETER IS EMPTY ,{[CUSTOMER].[COUNTRY].Members}, {[CUSTOMER].[${param}]} ) }ON ROWS from [TRANSACTIONS] ${param} is my optional parameter for [CUSTOMER].[COUNTRY] . I unchecked "required" check button for my parameter, so OLAP should have all [VALUE]

AngularJS change single URL parameter on load if it matches a value

血红的双手。 提交于 2019-12-11 06:04:35
问题 I'm working on a web app where parameters get passed to views as you navigate through the site. These parameters are set by user filters. I've hit a problem whereby some views don't support a specific value from one of the filters, and where this happens the parameter needs to be reset to one out of two possibilities. I've been using $location.search({ type: "blue" }) but I've realised that if there are other parameters in the url/on the view, these get removed in place for just the one that

Rails multi-record form only saves parameters for last record

会有一股神秘感。 提交于 2019-12-11 05:56:28
问题 I'm trying to offer teachers a form that will create multiple students at once. It seems that most people tackle this concept with nested attributes, but I'm having a hard time understanding how that would work when I'm only using a single model. This article made it seem possible to achieve this without nested attributes, but my results are not working the way the author suggests. The students array should include one hash for each section of the form. But when I submit the form and check

Can't pass multiple parameters in an onclick function

大憨熊 提交于 2019-12-11 05:45:00
问题 I am trying to create an upload mechanism wherein I can upload a file in google drive by using it's file ID from HTML. I don't want to place the ID of the folder inside the upload function as this is needed. I am trying to pass multiple arguments on function upload(e) by declaring another parameter i.e. function upload(e,id). I am aware that the function is trigged in the HTML by this onclick="google.script.run.withSuccessHandler(updateUrl).upload(this.parentNode)" I tried to add another

How to send arguments (parameters) in a timerTick event in C#?

核能气质少年 提交于 2019-12-11 05:34:21
问题 I want to do something like this: private void ttimer_Tick(object sender, EventArgs e, char[,] imatrix) { Awesome code... } I have a method that fills a DataGridView with images, but I need to wait like half a second every time I do it. So, my original method is something like this: private void myMethod(char[,] imatrix) { Original awesome code... } And I want myMethod to be the timerTick's event that runs every 500 ms. Also, I do need to send the char[,] imatrix parameter. I think that it's

How can I use a Variable for a OLE DB Connection in SSIS

拈花ヽ惹草 提交于 2019-12-11 05:24:28
问题 Is there a way to use a user defined variable to define a connection string for an SSIS OLE DB Connection? 1) I had originally set it up to use a package parameter. 2) I execute the SSIS Package from a file using xp_cmdshell in a SQL stored proc, but found out that package Parameters are read only. I got this error ... "Changing the Value of a variable failed because it is a parameter variable. Parameter variables are read-only" 3) So it looks like I need to use variables... However, I don't

Crystal Reports - Passing value from one parameter to another

本秂侑毒 提交于 2019-12-11 05:19:17
问题 Crystal Version: 2008 I have 2 date parameters (start date and end date). I want to create an initial Boolean parameter; that if, 'True' automatically sets the 2 date parameters to specific dates, if 'False' the user enters the start date and end date. Basically, I want to create a parameter to drive another parameter. Any thoughts? 回答1: I think you should be able to use shared variables to accomplish this. You can set the values in a formula field the report header and then use the shared

How should I pass a user-defined type to SqlParameterCollection.AddWithValue?

此生再无相见时 提交于 2019-12-11 05:05:02
问题 I have a custom data type called StudentID , which has an implicit conversion to string. When I pass a StudentID instance to SqlCommand.Parameters.AddWithValue (as the value) and execute the command, I receive the following error: No mapping exists from object type StudentID to a known managed provider native type. Specifying a type for the parameter like SqlDbType.NVarChar doesn't help. The only thing that works is to explicitly cast the StudentID value to a string, which defeats the purpose