DescriptionIn the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of th...
分类:
其他好文 时间:
2015-04-29 13:17:40
阅读次数:
122
题目链接:HDU - 1506A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may h...
分类:
其他好文 时间:
2015-04-27 01:52:18
阅读次数:
123
梯度下降法存在的问题 梯度下降法的基本思想是函数沿着其梯度方向增加最快,反之,沿着其梯度反方向减小最快。在前面的线性回归和逻辑回归中,都采用了梯度下降法来求解。梯度下降的迭代公式为:\(\begin{aligned} \theta_j=\theta_j-\alpha\frac{\partial\;....
分类:
其他好文 时间:
2015-04-20 16:26:05
阅读次数:
3950
指数分布族 首先需要提及下指数分布族,它是指一系列的分布,只要其概率密度函数可以写成下面这样的形式:\(\begin{aligned} p(y;\eta)=b(y)exp(\eta^TT(y)-a(\eta))\end{aligned}\) 一般的很多分布(如高斯分布,泊松分布,二项式分布,伽马.....
分类:
其他好文 时间:
2015-04-13 18:40:56
阅读次数:
152
DescriptionA histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have ...
分类:
其他好文 时间:
2015-04-11 20:50:26
阅读次数:
115
题目大意给出一个数k,求第k个不是完全平方数个数的数字(这里的完全平方数并不包括1)。思路首先介绍一下莫比乌斯函数(Möbius):
μ(x)=? ? ? ? ? ? ? 1(?1) k 0 x=1能分解成k个不同的质因数的乘积其他情况 \mu(x)=\left\{
\begin{aligned}
&1&x = 1 \&(-1)^k&能分解成k个不同的质因数的乘积\&0&其他情况
\...
分类:
其他好文 时间:
2015-03-27 22:18:23
阅读次数:
195
参考:http://stackoverflow.com/questions/25300116/directxxmmatrix-error-c2719-declspecalign16-wont-be-aligned
参考:http://blog.csdn.net/yuanwenmao/article/details/6530826
环境:vs2013,glm-0.9.6.1
一、glm概述...
分类:
其他好文 时间:
2015-03-13 12:41:47
阅读次数:
222
字节对齐
1. X86结构是小端模式存储,既数据低位在低存储地址,数据高位在高存储地址。例如 short x = 0x3344; 假设x的地址为 0xBFFFF0F4,那么0xBFFFF0F4地址里面存储的是字节0x44, 0xBFFFF0F5地址里面存储的是字节0x33.
2. 为了使CPU能够跟快的访问内存,变量地址和变量长度有关联,即所谓地址对齐。4字节的int类型变量,其起始地址应...
分类:
其他好文 时间:
2015-01-28 19:50:44
阅读次数:
164
1. \[\begin{aligned} \mbox{原式} =\int \frac{dx}{2\sin x \cos x +2\sin x} = \frac12 \int \frac{\sin x}{\sin^2 x (\cos x+1)} dx = -\frac12 \int \frac{1}{...
分类:
其他好文 时间:
2015-01-03 23:52:51
阅读次数:
204