亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? statistics.cc

?? PostsBayesian Optimization Algorithm with Decision Graphs in C++,
?? CC
字號:
// ################################################################################//// name:          statistics.cc//// author:        Martin Pelikan//// purpose:       functions that compute and print out the statistics during and//                after the run//// last modified: February 1999//// #################################################################################include <stdio.h>#include <stdlib.h>#include "statistics.h"#include "population.h"#include "fitness.h"#include "boa.h"#include "mymath.h"#include "memalloc.h"#include "graph.h"// ================================================================================//// name:          initializeBasicStatistics//// function:      initializes basic statistics stuff//// parameters:    boaParams....the parameters sent to the BOA//// returns:       (int) 0//// ================================================================================int intializeBasicStatistics(BasicStatistics *statistics, BoaParams *boaParams){  // allocate memory for univariate frequencies  statistics->p1 = (float*) Calloc(boaParams->n,sizeof(float));  // get back  return 0;};// ================================================================================//// name:          doneBasicStatistics//// function:      done method for basic statistics//// parameters:    (none)//// returns:       (int) 0//// ================================================================================int doneBasicStatistics(BasicStatistics *statistics){  // free the memory used by the univariate frequencies  Free(statistics->p1);  // get back  return 0;};// ================================================================================//// name:          computeBasicStatistics//// function:      computes some basic statistics (on fitness and so) and sets some//                variables required for printing this information out in the//                future//// parameters:    t............number of generation//                population...a current population//                boaParams....the parameters sent to the BOA//// returns:       (int) 0//// ================================================================================int computeBasicStatistics(BasicStatistics *statistics, long t, Population *population, BoaParams *boaParams){  long i;  // set some variables  statistics->N                 = population->N;  statistics->n                 = population->n;  statistics->generation        = t;  statistics->guidanceThreshold = boaParams->guidanceThreshold;  // compute the maximal, minimal and average fitness in the population  statistics->max = 0;  statistics->minF = statistics->maxF = statistics->avgF = population->f[0];  if (isBestDefined())    statistics->numOptimal = (isOptimal(population->x[0],statistics->n))? 1:0;  for (i=1; i<statistics->N; i++)    {      statistics->avgF += population->f[i];      if (population->f[i]<statistics->minF)	statistics->minF = population->f[i];      else	if (population->f[i]>statistics->maxF)	  {	    statistics->maxF = population->f[i];	    statistics->max = i;	  }      if (isBestDefined())	if (isOptimal(population->x[i],statistics->n))	  statistics->numOptimal++;    };  statistics->avgF /= statistics->N;  // allocate memory for and compute the univariate frequencies  computeUnivariateFrequencies(population,statistics->p1);  // set the best guy (if defined...)  if (isBestDefined())    statistics->bestX = population->x[statistics->max];  // get back  return 0;};// ================================================================================//// name:          generationStatistics//// function:      prints out various statistics//// parameters:    out..........output stream//// returns:       (int) 0//// ================================================================================int generationStatistics(FILE *out, BasicStatistics *statistics){  // output not null?  if (out==NULL)    return 0;  // print it all out  fprintf(out,"--------------------------------------------------------\n");  fprintf(out,"Generation                   : %lu\n",statistics->generation);  fprintf(out,"Fitness evaluations          : %lu\n",getFitnessCalls());  fprintf(out,"Fitness (max/avg/min)        : (%5f %5f %5f)\n",statistics->maxF,statistics->avgF,statistics->minF);  if (isBestDefined())    fprintf(out,"Percentage of optima in pop. : %1.2f\n",((float)statistics->numOptimal/statistics->N)*100);  fprintf(out,"Population bias              : ");  printGuidance(out,statistics->p1,statistics->n,statistics->guidanceThreshold);  fprintf(out,"\n");  fprintf(out,"Best solution in the pop.    : ");  printIndividual(out,statistics->bestX,statistics->n);  fprintf(out,"\n");  // get back  return 0;};// ================================================================================//// name:          fitnessStatistics//// function:      prints out the statistics on fitness//// parameters:    out..........output stream//// returns:       (int) 0//// ================================================================================int fitnessStatistics(FILE *out, BasicStatistics *statistics){  // output not null?  if (out==NULL)    return 0;  // print it all out  fprintf(out,"%3lu %7lu %10f %10f %10f\n",statistics->generation,getFitnessCalls(),statistics->maxF,statistics->avgF,statistics->minF);  // get back  return 0;};// ================================================================================//// name:          finalStatistics//// function:      prints out statistics (called after the run is over)//// parameters:    out...........output stream//                termination...the reason for terminating the algorithm (string)//// returns:       (int) 0//// ================================================================================int finalStatistics(FILE *out, char *termination, BasicStatistics *statistics){  // is output stream null?  if (out==NULL)    return 0;  // print it all out  fprintf(out, "\n=================================================================\n");  fprintf(out, "FINAL STATISTICS\n");  fprintf(out, "Termination reason           : %s\n",termination);  fprintf(out, "Generations performed        : %lu\n",statistics->generation);  fprintf(out, "Fitness evaluations          : %lu\n",getFitnessCalls());  fprintf(out, "Fitness (max/avg/min)        : (%5f %5f %5f)\n",statistics->maxF,statistics->avgF,statistics->minF);  if (isBestDefined())    fprintf(out, "Percentage of optima in pop. : %1.2f\n",((float)statistics->numOptimal/statistics->N)*100);  fprintf(out,"Population bias              : ");  printGuidance(out,statistics->p1,statistics->n,statistics->guidanceThreshold);  fprintf(out,"\n");  fprintf(out,"Best solution in the pop.    : ");  printIndividual(out,statistics->bestX,statistics->n);  fprintf(out,"\n\nThe End.\n");  // get back  return 0;};// ================================================================================//// name:          printModel//// function:      prints out the constructed model (called each generation)//// parameters:    out..........output stream//                t............number of generation//                G............the constructed network//// returns:       (int) 0//// ================================================================================int printModel(FILE *out, long t, AcyclicOrientedGraph *G){  int i,k;  // is output stream null?  if (out==NULL)    return 0;  // print out the generation number  fprintf(out,"--------------------------------------------------------\n");  fprintf(out,"Generation: %3lu\n\n",t);  // print out the model  for (i=0; i<G->size(); i++)    {      fprintf(out,"%3u",i);      fprintf(out," <- ");      for (k=0; k<G->getNumIn(i); k++)	{	  if (k!=0)	    fprintf(out,", ");	  fprintf(out,"%u",G->getParentList(i)[k]);	};      fprintf(out,"\n");    };  // get back  return 0;};// ================================================================================//// name:          printGuidance//// function:      prints out a population bias (where each bit is biased) according//                to a threshold ("0" if p1<treshold, "1" if p1>1-treshold, else //                ".")//// parameters:    out..........output stream//                p1...........univariate frequencies for 1's//                n............string length//                threshold....threshold for bias (closer than that is biased)//// returns:       (int) 0//// ================================================================================int printGuidance(FILE *out, float *p1, int n, float threshold){  int k;  float threshold1;    // compute upper threshold  threshold1 = 1-threshold;  // print where the frequencies are biased  for (k=0; k<n; k++)    if (p1[k]<threshold)      fprintf(out,"0");    else      if (p1[k]>threshold1)	fprintf(out,"1");      else	fprintf(out,".");  // get back  return 0;};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本特黄久久久高潮| 97se亚洲国产综合自在线| 成人av手机在线观看| 欧美中文字幕一区二区三区亚洲| 欧美白人最猛性xxxxx69交| 亚洲欧洲av另类| 青青青爽久久午夜综合久久午夜 | 蜜臀av亚洲一区中文字幕| 成人高清伦理免费影院在线观看| 制服丝袜中文字幕一区| 亚洲欧美另类久久久精品2019 | 水蜜桃久久夜色精品一区的特点| 国产成人在线影院 | 欧美情侣在线播放| 最新不卡av在线| 国产精品正在播放| 日韩欧美一级在线播放| 亚洲1区2区3区4区| 91香蕉视频污| 国产精品乱码久久久久久| 久久99在线观看| 5月丁香婷婷综合| 亚洲在线视频免费观看| 91丝袜国产在线播放| 中文字幕第一区第二区| 国产成人亚洲综合a∨婷婷| 91精品婷婷国产综合久久竹菊| 亚洲观看高清完整版在线观看| 国产成人精品三级麻豆| 久久综合久久久久88| 免费精品视频在线| 日韩亚洲欧美在线| 毛片基地黄久久久久久天堂| 欧美一区二区三区日韩视频| 丝袜诱惑制服诱惑色一区在线观看| 色综合天天综合给合国产| 1024国产精品| 一本大道av一区二区在线播放| 国产精品嫩草影院av蜜臀| 成人免费视频网站在线观看| 国产精品午夜春色av| www.亚洲精品| 日韩毛片精品高清免费| 色视频成人在线观看免| 亚洲一区二区偷拍精品| 欧美性色综合网| 日韩精品三区四区| 欧美成人精精品一区二区频| 国产福利视频一区二区三区| 亚洲欧洲av另类| 欧美视频日韩视频在线观看| 首页国产丝袜综合| 精品国产乱码久久久久久浪潮| 国产精品一区二区无线| 国产精品久久久久久亚洲毛片| 色系网站成人免费| 天堂久久一区二区三区| 欧美成人a视频| 成人黄色小视频在线观看| 亚洲视频一二区| 在线播放亚洲一区| 国产一区二区三区香蕉| 国产精品国产三级国产普通话三级 | 国产欧美一区二区精品秋霞影院| 不卡的av电影在线观看| 午夜视频一区二区三区| 欧美成人猛片aaaaaaa| jlzzjlzz国产精品久久| 视频一区二区国产| 国产欧美一区视频| 欧美亚日韩国产aⅴ精品中极品| 久久99精品一区二区三区三区| 国产精品久久精品日日| 欧美久久久一区| 成人av资源下载| 日本vs亚洲vs韩国一区三区二区| 国产精品三级av| 欧美肥妇毛茸茸| 91网站最新地址| 精品一区免费av| 亚洲一区中文在线| 日本一区二区在线不卡| 欧美精品日韩一本| 91在线免费播放| 国产在线看一区| 亚洲成a人在线观看| 国产精品视频看| 日韩欧美亚洲一区二区| 日本精品视频一区二区三区| 国产精品亚洲第一区在线暖暖韩国| 亚洲国产精华液网站w| 亚洲欧洲精品一区二区精品久久久| 欧美亚洲国产怡红院影院| 国产美女视频91| 香港成人在线视频| 国产精品三级视频| 亚洲精品一线二线三线 | 亚洲chinese男男1069| 国产性天天综合网| 日韩视频免费观看高清完整版 | 亚洲尤物在线视频观看| 久久久久久久久一| 日韩一区二区三区观看| 欧美最新大片在线看| 97精品视频在线观看自产线路二| 国产精品一区二区视频| 激情国产一区二区| 日韩va欧美va亚洲va久久| 一区二区在线观看视频在线观看| 中文字幕不卡在线观看| xf在线a精品一区二区视频网站| 欧美高清视频一二三区| 欧美日韩极品在线观看一区| 91久久一区二区| 色婷婷综合久久久久中文一区二区 | 日韩欧美国产一区二区三区| 欧美日韩一区二区三区免费看| 一本色道久久综合亚洲aⅴ蜜桃| 国产91精品一区二区麻豆网站| 国产乱码一区二区三区| 国产成人精品免费看| 国产91丝袜在线18| 国产成人夜色高潮福利影视| 粉嫩蜜臀av国产精品网站| 国产凹凸在线观看一区二区| 国产成人av福利| heyzo一本久久综合| 不卡av免费在线观看| 91性感美女视频| 欧美性xxxxxxxx| 日韩一级片在线观看| 精品国产一区二区精华 | 欧美一级国产精品| 欧美成人伊人久久综合网| 久久久亚洲高清| 国产精品二三区| 一区二区三区在线视频播放| 日韩制服丝袜av| 国产毛片精品视频| eeuss国产一区二区三区| 色悠悠久久综合| 337p亚洲精品色噜噜噜| 久久久蜜桃精品| 亚洲乱码一区二区三区在线观看| 亚洲国产成人高清精品| 久久99热国产| 91碰在线视频| 欧美一级淫片007| 久久久www成人免费毛片麻豆| 中文字幕一区二区三区色视频| 伊人开心综合网| 久久精品国产亚洲aⅴ| kk眼镜猥琐国模调教系列一区二区| 在线观看亚洲精品视频| 精品人伦一区二区色婷婷| 国产精品传媒视频| 日韩精品色哟哟| 成人av在线播放网站| 欧美色偷偷大香| 国产欧美一区二区三区在线看蜜臀 | 欧美一区日韩一区| 国产蜜臀97一区二区三区| 亚洲国产另类av| 成人激情视频网站| 91麻豆精品国产91久久久| 中文字幕一区不卡| 激情小说欧美图片| 欧美精品欧美精品系列| 亚洲欧洲制服丝袜| 国产精品99精品久久免费| 欧美蜜桃一区二区三区| 中文字幕乱码亚洲精品一区| 麻豆专区一区二区三区四区五区| 色综合天天综合网天天看片| 欧美成人aa大片| 亚洲mv在线观看| 国产一区免费电影| 91精品中文字幕一区二区三区| 久久久精品天堂| 精品福利二区三区| 日韩高清在线一区| 成人高清视频在线| 欧美一区二区三区啪啪| 五月婷婷久久丁香| 成人一道本在线| 91麻豆精品国产91久久久更新时间| 一区二区三区蜜桃| 国产精品一区2区| 欧美一区二区三区男人的天堂| 中文字幕精品一区二区三区精品| 韩国精品一区二区| 欧美日本国产视频| 亚洲色图视频网| 91免费版在线| 久久精品一区二区三区不卡牛牛 | 精品国产一区二区三区忘忧草| 一区二区三区鲁丝不卡| 捆绑调教一区二区三区| 成年人国产精品| 日韩欧美高清dvd碟片|