Displaying 3 results from an estimated 3 matches for "examplefunct".
Did you mean:
examplefun
2008 Aug 07
1
recursive root finding
...ne myself. I need to
find N (typically N= 3 to 5) zeros in a function that is not a
polynomial in a specified interval.
The code below illustrates this, by creating a noisy curve with three
peaks of different position, magnitude, width and asymmetry:
> x <- seq(1, 10, length=500)
> exampleFunction <- function(x){ # create some data with peaks of
> different scaling and widths + noise
> fano <- function (p, x)
> {
> y0 <- p[1]
> A1 <- abs(p[2])
> w1 <- abs(p[3])
> x01 <- p[4]
> q <- p[5]
> B1 <- (2 * A1/pi...
2013 Jun 19
3
Calling an array in a struct in C to R
...ation or pointers I need in order to understand
the way in which the communication between R and C occurs. I have the
following C code which basicallly reflects what I want:
typedef struct
{
float *array;
size_t used;
size_t size;
} Array;
void main2R()
{
Array a;
examplefunction(&a); /*fills and dynamically grows a->array*/
}
Now I would want to return a.array or a->array to R. According to the R
manuals, the compiled C code should not return anything except through its
arguments. The problem here is, I have a dynamically growing array, and I
have no idea w...
2006 Apr 06
2
Java: How to interact with ruby generated fields
...munity,
I''m new to rubyonrails and to this Forum. I have to call 2 Fields,
generated by ruby, from a javafunction (onSubmit) but when I use this
example it didn''t work, why?
<%= start_form_tag({:action=> "show"}, { :onSubmit
=>"post[testfieldone].value=examplefunction(post[textfieldtwo].value+post[textfieldthree].value);"
}) %>
----snip
<%= hiddenfield_field "post", "textfieldone", :size => 20%>
<%= text_field "post", "textfieldtwo", :size => 20%>
<%= text_field "post", "te...