代码搜索:average
找到约 5,196 项符合「average」的源代码
代码结果 5,196
www.eeworm.com/read/319883/13440418
cpp prog20_08.cpp
// Program 20.8 Averaging values from Integer File: prog20_08.cpp
#include
#include "Integer.h"
using std::cout;
using std::endl;
template
double average(Iter a, I
www.eeworm.com/read/319883/13440501
cpp prog8_05.cpp
// Program 8.5 Passing an array
#include
using std::cout;
using std::endl;
double average(double array[], int count); // Function prototype
int main() {
double values[] = {1.
www.eeworm.com/read/319883/13440509
cpp prog8_06.cpp
// Program 8.6 Handling an array parameter as a pointer
#include
using std::cout;
using std::endl;
double average(double* array, int count); // Function prototype
int main() {
www.eeworm.com/read/319774/13443349
m simplex.m
%Simplex method
%对于光纤对准问题,是寻找函数最大点为优化目标。
%通常最优化目标是寻找函数最小值,所以程序要注意针对这一点的改动。
%Ref. Book(Su Tashan 2001) P97
%fun:name of the function f(x)
%x0:nx1 vector of initial point
%option=[beita,gama,eps]'
www.eeworm.com/read/319472/13451297
c flexmemb.c
// flexmemb.c -- flexible array member
#include
#include
struct flex
{
int count;
double average;
double scores[]; // flexible array member
};
void sho
www.eeworm.com/read/316923/13514437
c math.c
#include
void main ()
{
int seconds_in_an_hour;
float average;
seconds_in_an_hour = 60 * 60;
average = (5 + 10 + 15 + 20) / 4;
printf("The number of secon
www.eeworm.com/read/315699/13537957
c flexmemb.c
// flexmemb.c -- flexible array member
#include
#include
struct flex
{
int count;
double average;
double scores[]; // flexible array member
};
void sho
www.eeworm.com/read/315631/13539410
c math.c
#include
void main ()
{
int seconds_in_an_hour;
float average;
seconds_in_an_hour = 60 * 60;
average = (5 + 10 + 15 + 20) / 4;
printf("The number of secon
www.eeworm.com/read/312610/13607785
txt 例8.11.txt
例8.11 有一个一维数组score,内放10个学生成绩,求平均成绩。
程序如下:
float average(float array[10])
{int i;
float aver,sum=array[0];
for(i=1;i
www.eeworm.com/read/308924/13687380
m select.m
function [y,y1]=select(ImageData,h,w)
thr=0.5;delta=0.05;
%
y=(ImageData>=thr*mean(max(ImageData)));
BW2=bwareaopen(y,10);SE=strel('square',15);
IM2=imdilate(BW2,SE);
IM3=imerode(IM2,SE);
%