代码搜索结果
找到约 2,916 项符合
Energy 的代码
particle.h
#ifndef PARTICLE_H
#define PARTICLE_H
#include
/* Particle data type. */
typedef struct particle_s {
double x,y; /* coordinates of the particle */
double energy; /* velocity of the
particle.h
#ifndef PARTICLE_H
#define PARTICLE_H
#include
/* Particle data type. */
typedef struct particle_s {
double x,y; /* coordinates of the particle */
double energy;
particle.h
#ifndef PARTICLE_H
#define PARTICLE_H
#include
/* Particle data type. */
typedef struct particle_s {
double x,y; /* coordinates of the particle */
double energy; /* ve
cluster_head.m
function [head_coordinate,new_mark]=cluster_head(XY,current_rounds)
global old_mark p left_energy threshold_energy_head
rand('state',sum(100*clock));
[m,n]=size(XY);%计算行数和列数
amount_node=n;%节点数目
t
tinitwhite.m
function [T0,W,Ew,Wbsf,Ebsf,Ea,Ev,steps] = TinitWhite(r, walkers, newstate, X, cost, moveclass)
% White temperature initialization method supplied with SA Tools.
% Copyright (c) 2002, by Richard Fro
tinitt0.m
function [T0,W,Ew,Wbsf,Ebsf,Ea,Ev,steps] = TinitT0(r, walkers, newstate, X, cost, moveclass)
% Fixed temperature initialization method supplied with SA Tools.
% Copyright (c) 2002, by Richard Frost
randomwalk.m
function [W,Ew,Wbsf,Ebsf,Ea,Ev] = randomwalk(steps, walkers, newstate, X, cost, moveclass)
% Random walk method supplied with SA Tools.
% Copyright (c) 2002, by Richard Frost and Frost Concepts.
%
chow_algo.m
% Chow's Algorithm
% ----------------
% This is based on the paper by Chow et al titled
%
% A Practical Discrete Multitone Transceiver Loading Algorithm
% for Data Transmission over Spectrally Shaped