https://blog.csdn.net/ym19860303/article/details/25545933 1.Lambert模型(漫反射) 环境光: Iambdiff = Kd*Ia 其中Ia 表示环境光强度,Kd(0<K<1)为材质对环境光的反射系数,Iambdiff是漫反射体与环境光交 ...
分类:
其他好文 时间:
2020-02-06 14:24:51
阅读次数:
91
Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image. Example: Input: ...
分类:
其他好文 时间:
2020-02-06 10:46:38
阅读次数:
71
若已经拿到表达矩阵exprSet 若差异较大,进行log缩小不同样本的差距 1、热图全体 1 ##加载包 2 library(pheatmap) 3 4 ##缩小表达量差距 5 exprSet <- log2(exprSet+1) 6 7 ##取最大标准差前1000个基因名字 8 cg <-name ...
分类:
其他好文 时间:
2020-02-05 23:30:26
阅读次数:
418
From: University of Maryland encode time series as different types of images. reformulate features of time series as visual clues. three representatio ...
分类:
其他好文 时间:
2020-02-05 10:00:43
阅读次数:
79
使用句子中出现单词的Vector加权平均进行文本相似度分析虽然简单,但也有比较明显的缺点:没有考虑词序且词向量区别不明确。如下面两个句子:“北京的首都是中国”与“中国的首都是北京”的相似度为1。“学习容易”和“学习困难”的相似度很容易也非常高。为解决这类问题,需要用其他方法对句子进行表示,LSTM是... ...
分类:
其他好文 时间:
2020-02-04 14:11:31
阅读次数:
99
前言: NumPy系统是Python的一种开源的数值计算扩展。 这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多(该结构也可以用来表示矩阵(matrix))。 在处理ndarray数据的时候,numpy的内置函数会让你感觉到什 ...
分类:
其他好文 时间:
2020-02-04 00:31:24
阅读次数:
69
POJ 3685 Matrix 二分套二分 题意 有一个 阶方阵,方正中第 行第 列的元素值为$d_{i,j}=i^{2}+1e5 i+j^{2} 1e5 j+i j$,我们需要找出这个方阵中第 小的元素值。 解题思路 分析这个公式,我们发现:当 固定的时候,这个公式关于 (取值范围:从 到`n`) ...
分类:
其他好文 时间:
2020-02-03 20:47:38
阅读次数:
67
Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix or ...
分类:
其他好文 时间:
2020-02-03 09:40:07
阅读次数:
71
Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe first line of ...
分类:
其他好文 时间:
2020-02-01 16:13:15
阅读次数:
69