Redian新闻
>
numeric recipe code amotry(), bug or not
avatar
numeric recipe code amotry(), bug or not# Computation - 科学计算
a*r
1
in function amotry() for downhill simplex minimization,
why fac2=fac2=fac1-fac; instead of fac2=-fac;
then this may not be a reflection or extrapolation, because
ytry[j] = center * (1-fac) + p[ihi][j]*face - (1-fac)/ndim * p[ihi][j]
the first two terms is the extrapolation, what's the point for the 3rd term?
It will be incorrect in some case, reflection will not be reflection anymore.
float amotry(float **p, float y[], float psum[], int ndim,
float (*funk)(float []), int ihi, float fac)
Extrapo
avatar
m*n
2
Both Numerical Recipes in C and Numerical Recvipes in Fortran should be used.

anymore.

【在 a********r 的大作中提到】
: in function amotry() for downhill simplex minimization,
: why fac2=fac2=fac1-fac; instead of fac2=-fac;
: then this may not be a reflection or extrapolation, because
: ytry[j] = center * (1-fac) + p[ihi][j]*face - (1-fac)/ndim * p[ihi][j]
: the first two terms is the extrapolation, what's the point for the 3rd term?
: It will be incorrect in some case, reflection will not be reflection anymore.
: float amotry(float **p, float y[], float psum[], int ndim,
: float (*funk)(float []), int ihi, float fac)
: Extrapo

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。