您好,欢迎来电子发烧友网! ,新用户?[免费注册]

您的位置:电子发烧友网>源码下载>数值算法/人工智能>

遗传算法的源代码

大小:3445 人气: 2010-02-09 需要积分:0
那些年儿ing的空间

用户级别:注册会员

贡献文章:

贡献资料:

遗传算法的源代码:Functions:

?mexFunction, eqn.

?
? Functions adapted from 'Numerical Recipes in C':
?
?mrqcof, mrqmin, covsrt, gaussj, vector, matrix, ivector, free_ivector,
?free_vector, ree_matrix, nerror.
?
?
*/?

#include
#include
#include
#include "mex.h"

#define SWAP(a,b) {float temp=(a);(a)=(b);(b)=temp;}

/* gateway routine */
void mexFunction(
?int nlhs, Matrix *plhs[],
?int nrhs, Matrix *prhs[])
/*void mexFunction(nlhs,plhs,nrhs,prhs)
int nlhs;
Matrix *plhs[];
int nrhs;
Matrix *prhs[];*/
{?
?
?double *xp,*ap,*yp,*sigp,*ndatap,*mfitp,*map,*listap;
?float alamda,**covar,chisq,oldchisq,**alpha,**matrix(),*vector(),*x,*y,*sig;
?double *xout;
?float a[31];
?int mfit,ma,ndata,lista[31],ctr,maxit,npar,vecl,count;
?void ree_matrix(),free_vector();
?void mrqmin();
?void (*funcs)();
?void eqn();
?Matrix *strptr[1];

非常好我支持^.^

(4) 100%

不好我反对

(0) 0%

      发表评论

      用户评论
      评价:好评中评差评

      发表评论,获取积分! 请遵守相关规定!

      ?