代码搜索:Select
找到约 10,000 项符合「Select」的源代码
代码结果 10,000
www.eeworm.com/read/461294/7229634
c select.c
/*
* GENESIS Copyright (c) 1986, 1990 by John J. Grefenstette
* This program may be freely copied for educational
* and research purposes. All other rights reserved.
*
* file: select
www.eeworm.com/read/461294/7229957
m select.m
function [out]=select(in,d,x,y)
%
% out=select(in);
%
% selects a new population
%
%
%
% Mix up the population
%
chrom=shuffle(in);
%
% Decode the existing population
%
coefs=decodal
www.eeworm.com/read/460510/7248478
m select.m
function y=select(fit,N)
P=rand(1,N);
for i=1:N
tem_p=find(fit>=P(i));
s(i)=tem_p(1);
end
y=s;
www.eeworm.com/read/460074/7258122
wav select.wav
www.eeworm.com/read/460074/7258287
wav select.wav
www.eeworm.com/read/459616/7270313
out select.out
The 1 element is 1
The 2 element is 2
The 3 element is 2
The 4 element is 3
The 5 element is 4
The 6 element is 7
The 7 element is 8
The 8 element is 9
The 9 element is 10
The 10 element is 12
The 11
www.eeworm.com/read/459616/7270567
cpp select.cpp
// find k'th smallest element
#include
#include "select.h"
void main(void)
{
int y[16] = {20, 30, 4, 2, 9, 7, 1, 2, 10, 3, 40, 22, 12, 14, 8, 100};
int n = 15, x;
for (int i
www.eeworm.com/read/459616/7270656
h select.h
// file select.h
// find the k'th smallest element
#ifndef Select_
#define Select_
#include "xcept.h"
#include "swap.h"
template
T select(T a[], int l, int r, int k)
{// Return k'th smalle
www.eeworm.com/read/459221/7278470