Displaying 4 results from an estimated 4 matches for "dpars".
Did you mean:
pars
2008 Oct 31
0
R help for invoking nmmin()
My code is as follows:
#include <iostream>
#include <cmath>
using namespace std;
#define MATHLIB_STANDALONE 1
extern "C"
{
#include "R_ext/Applic.h"
}
typedef struct TT{
double ** tempX;
double * tempY;
int tempN;
} TT, *MM;
double fn(int N, double * beta, void * ex){
double total = 0;
int i = 0,j = 0;
double * betaFn = new double[N];
MM tmp = (MM)ex;
2007 Oct 23
0
API for optimization with Simulated annealing
Dear list,
I was trying to use the R API for optimization method "Simulated annealing"
void samin(int n, double *x, double *Fmin, optimfn fn, int maxit,
int tmax, double temp, int trace, void *ex);
but I encountered the following problem:
The implementation of the function samin (as seen in src/main/optim.c)
passes its void * argument "ex" into the function
1996 Dec 16
0
Re: vixie-crontab for redhat linux (Fix)
...filepos = ftell(f);
fileline = LineNumber;
@@ -128,8 +129,14 @@
name[0] = val[0] = ''\0'';
fields = sscanf(envstr, "%[^ =] = %[^\n#]", name, val);
- if (fields != 2) {
+ if (strlen(envstr) > MAX_TEMPSTR) {
+ Debug(DPARS, ("load_env, var name too long\n"))
+ Error = 1;
+ } else if (fields != 2) {
Debug(DPARS, ("load_env, not 2 fields (%d)\n", fields))
+ Error = 1;
+ }
+ if (Error != 0) {
fseek(f, filepos, 0);...
2009 Jul 02
2
constrained optimisation in R.
i want to estimate parameters with maximum likelihood method with contraints (contant numbers).
for example
sum(Ai)=0 and sum(Bi)=0
i have done it without the constraints but i realised that i have to use the contraints.
Without constraints(just a part-not complete):
skellamreg_LL=function(parameters,z,design)
{
n=length(z);
mu=parameters[1];
H=parameters[2];
Apar=parameters[3:10];