search for: fmmin

Displaying 2 results from an estimated 2 matches for "fmmin".

Did you mean: fmin
2012 Jun 08
0
Working with optim in C
I've searched to find examples of how to work with the C versions of optim. I've separated out the function just to test on it alone, and currently I'm attempting to use fmmin as follows: !~~CODE ~~! double optimfn(int n, double *par, void *ex) { double * lambda = (double*)malloc(sizeof(double)*n); double sum = 0; for(int i =0; i < n; i++) { lambda[i] = (1+tanh(par[i]/2.0))/2.0; } for(int i = 0; i < n; i++) { sum += (par[i]*log(...
2012 Jun 09
0
R-devel Digest, Vol 112, Issue 8
...gXJ6LXMJ-ZFsFSTxT0ab7g=RAXdpBghg at mail.gmail.com> > Content-Type: text/plain > > I've searched to find examples of how to work with the C versions of > optim. > > I've separated out the function just to test on it alone, and currently I'm > attempting to use fmmin as follows: > > > !~~CODE ~~!