Displaying 4 results from an estimated 4 matches for "mynumderiv".
2018 Apr 06
3
Obtain gradient at multiple values for exponential decay model
...("curiosity"), not the answer (indeed, "homework"). :)
>>
>> Personal curiosity should be considered "homework".
>
> Besides symbolic differentiation, there is also the option of numeric differentiation. Here's an amateurish attempt:
>
> myNumDeriv <- function(x){ (exp( predict (graphmodeld, newdata=data.frame(t=x+.0001))) -
> exp( predict (graphmodeld, newdata=data.frame(t=x) )))/
> .0001 }
> myNumDeriv(c(100, 250, 350))
I realized that this wou...
2018 Apr 06
0
Obtain gradient at multiple values for exponential decay model
...tions/syntax to read further ("curiosity"), not the answer (indeed, "homework"). :)
>
> Personal curiosity should be considered "homework".
Besides symbolic differentiation, there is also the option of numeric differentiation. Here's an amateurish attempt:
myNumDeriv <- function(x){ (exp( predict (graphmodeld, newdata=data.frame(t=x+.0001))) -
exp( predict (graphmodeld, newdata=data.frame(t=x) )))/
.0001 }
myNumDeriv(c(100, 250, 350))
David Winsemius
Alameda, CA, USA
&...
2018 Apr 06
2
Obtain gradient at multiple values for exponential decay model
> Sent: Friday, April 06, 2018 at 5:55 AM
> From: "David Winsemius" <dwinsemius at comcast.net>
>
>
> Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See:
>
> ?predict
>
The ? details did not mention interpolation explicity; thanks.
> The
2018 Apr 07
0
Obtain gradient at multiple values for exponential decay model
...t;), not the answer (indeed, "homework"). :)
>>>
>>> Personal curiosity should be considered "homework".
>>
>> Besides symbolic differentiation, there is also the option of numeric differentiation. Here's an amateurish attempt:
>>
>> myNumDeriv <- function(x){ (exp( predict (graphmodeld, newdata=data.frame(t=x+.0001))) -
>> exp( predict (graphmodeld, newdata=data.frame(t=x) )))/
>> .0001 }
>> myNumDeriv(c(100, 250, 350))
>
> I re...