⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gbits.cpp

📁 一个由Mike Gashler完成的机器学习方面的includes neural net, naive bayesian classifier, decision tree, KNN, a genet
💻 CPP
字号:
#include "GBits.h"#include <math.h>// staticdouble GBits::GetRandomGaussian(){	double x, y, mag;	do	{		x = GBits::GetRandomDouble() * 2 - 1;		y = GBits::GetRandomDouble() * 2 - 1;		mag = x * x + y * y;	} while(mag >= 1.0 || mag == 0);	return y * sqrt(-2.0 * log(mag) / mag); // the Box-Muller transform	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -