代码搜索:selection
找到约 9,869 项符合「selection」的源代码
代码结果 9,869
www.eeworm.com/read/203618/15354311
m selection.m
% The select oprator function
% function new_pop=select(pop,ada)
ada_sum=0;
ada_temp=0;
r=0;
i=0;j=0;
for i=1:40
ada_sum=ada_sum+adapt(i);
end
for i=1:39 %选择39次,最后一个个体留给历代最优解
www.eeworm.com/read/203618/15354321
asv selection.asv
% The select oprator function
% function new_pop=select(pop,ada)
ada_sum=0
ada_temp=0;
r=0;
i=0;j=0;
for i=1:40
ada_sum=ada_sum+adapt(i);
end
for i=1:39 %选择39次,最后一个个体留给历代最优解
www.eeworm.com/read/200524/15431214
m selection.m
% 选择复制
% 选择或复制操作是决定哪些个体可以进入下一代。程序中采用赌轮盘选择法选择,这种方法较易实现。
% 根据方程 pi=fi/∑fi=fi/fsum ,选择步骤:
% 1)在第 t 代,由(1)式计算 fsum 和 pi
% 2)产生 {0,1} 的随机数 rand( .),求 s=rand( .)*fsum
% 3)求 ∑fi≥s 中最小的 k ,则第 k 个个体被选中
www.eeworm.com/read/109477/15556664
h selection.h
/*
* selection.h
*
* Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
*/
#ifndef _LINUX_SELECTION_H_
#define _LINUX_SELECTION_H_
#include
extern int
www.eeworm.com/read/109240/15560836
c selection.c
/*
SGPC: Simple Genetic Programming in C
(c) 1993 by Walter Alden Tackett and Aviram Carmi
This code and documentation is copyrighted and is not in the public domain.
All rights reserved.
- Th
www.eeworm.com/read/105661/15661973
gif selection.gif
www.eeworm.com/read/100265/15879304
cc selection.cc
#include "mcl.h"
#include "Interpreter.h"
#include "cui.h"
#include "Alias.h"
Selection::Selection(Window *_parent, int _w, int _h, int _x, int _y)
: Window (_parent, _w, _h, Bordered, _x, _y), coun