描述 The D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs ...
分类:
其他好文 时间:
2018-05-14 13:19:15
阅读次数:
186
参考博客:https://blog.csdn.net/tianhaobing/article/details/65443049 ...
分类:
其他好文 时间:
2018-05-13 23:02:22
阅读次数:
155
knn 最邻近分类 Class = knnclassify(test_data,train_data,train_label, k, distance, rule) k:选择最邻近的数量 distance:距离度量 'euclidean' 欧几里得距离,默认的 'cityblock' 绝对差的和 ' ...
分类:
其他好文 时间:
2018-05-12 11:20:49
阅读次数:
490
题目一 + 题目描述: "461.明距离(Hamming Distance)" ...
分类:
其他好文 时间:
2018-05-03 13:33:01
阅读次数:
163
On a horizontal number line, we have gas stations at positions stations[0], stations[1], ..., stations[N-1], where N = stations.length. Now, we add K ...
分类:
其他好文 时间:
2018-04-29 01:18:18
阅读次数:
320
EAC3基于hebap来决定mantissa的quantizer. hebap如下: mantissa 使用VQ(vector quantization) 和GAQ(gain adaptive quantization)进行编码。 1)VQ 对于AHT process, 每个block中的第k个sp ...
分类:
其他好文 时间:
2018-04-27 23:53:02
阅读次数:
208
【传送门:BZOJ1468&BZOJ3365】 简要题意: 给出一棵n个点的树,和每条边的边权,求出有多少个点对的距离<=k 题解: 点分治模板题 点分治的主要步骤: 1、首先选取一个点,把无根树变成有根树。 那么如何选点呢? ——树形DP 因为树是递归定义的,所以我们当然希望递归的层数最小。 每次 ...
分类:
其他好文 时间:
2018-04-27 13:31:06
阅读次数:
211
1. 基本形式 f(æ) = ω1 X1 + ω2 X2 十...+ωdXd + b , 2.线性回归 均方误差有非常好的几何意义--它对应了常用的欧几里得距离或简称"欧 氏距离" (Euclidean distance). 基于均方误差最小化来进行模型求解的方法称为"最小二乘法" (least s ...
分类:
其他好文 时间:
2018-04-26 12:05:17
阅读次数:
287
Homework #7: Computational All computations should be done in this notebook using the R kernel. Working in small groups is allowed, but it is importan ...
分类:
其他好文 时间:
2018-04-24 21:46:40
阅读次数:
228
1. 欧氏距离(Euclidean Distance) 欧氏距离是最容易直观理解的距离度量方法,我们小学、初中和高中接触到的两个点在空间中的距离一般都是指欧氏距离。 二维平面上点a(x1,y1)与b(x2,y2)间的欧氏距离: 三维空间点a(x1,y1,z1)与b(x2,y2,z2)间的欧氏距离: ...
分类:
其他好文 时间:
2018-04-24 17:35:43
阅读次数:
528