码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
LeetCode - Spiral Matrix II
题目:Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3,You should return the follo...
分类:其他好文   时间:2015-12-27 13:22:30    阅读次数:111
【机器学习】K-Means 聚类是特殊的矩阵分解问题
【机器学习】K-Means 聚类是特殊的矩阵分解问题。 本博客是该论文《k-Means Clustering Is Matrix Factorization》的阅读笔记。论文证明了传统的K-Means算法的目标函数可以被表达成数据矩阵与其低阶数据矩阵之间差异的Frobenius范数。简单地说,K-Means 聚类是特殊的矩阵分解问题。...
分类:其他好文   时间:2015-12-26 19:43:15    阅读次数:367
HDU计算机学院大学生程序设计竞赛(2015’12)1006 01 Matrix
从右下角往右上角预处理每个点有一个r x vr代表右边有多少连续1x代表下面有多少连续1v代表以这个为左上角的矩阵最大是多少所以v i j = min(r i j+1, x i+1 j ,v i+1,j+1) +1r[i][j]=r[i][j+1]+1;x[i][j]=x[i+1][j]+1;然.....
分类:其他好文   时间:2015-12-26 16:51:54    阅读次数:184
[LeetCode] 73. Set Matrix Zeroes 解题思路
问题:给定一个矩阵,当矩阵一个元素为 0 ,将该元素的当前行,当前列都设为 0 。 我的方案满足补充内容的第二点,使用 O(m + n) 额外空间。
分类:其他好文   时间:2015-12-26 11:33:27    阅读次数:123
LeetCode - Rotate Image
题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:1) 把matri...
分类:其他好文   时间:2015-12-25 17:05:52    阅读次数:122
[LeetCode]73.Set Matrix
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space? A straight forward sol...
分类:其他好文   时间:2015-12-25 15:10:58    阅读次数:185
Android Bitmap 常见的几个操作:缩放,裁剪,旋转,偏移
Android Bitmap 相关操作常见的几个操作:缩放,裁剪,旋转,偏移很多操作需要 Matrix 来支持;Matrix 通过矩阵来处理位图,计算出各个像素点的位置,从而把bitmap显示出来。 matrix里有一个3x3的矩阵,用于图像处理:MSCALE_X MSKEW_X MTRANS_X....
分类:移动开发   时间:2015-12-23 22:59:46    阅读次数:767
[LeetCode]题解(python):074-Search a 2D Matrix
题目来源: https://leetcode.com/problems/search-a-2d-matrix/题意分析: 给一个m×n矩阵,矩阵是按照从小到大排列,也就是a[i][j]和a[m][n]如果i > m则a[i][j]>a[m][n],如果i == m,j > n,则a[i][j]>.....
分类:编程语言   时间:2015-12-23 15:49:12    阅读次数:156
DLUTOJ 1033 Matrix
传送门Time Limit: 2 SecMemory Limit: 128 MBDescriptionWe often use the matrix to analyze reality models. There are lots of algorithm about matrix in Line...
分类:其他好文   时间:2015-12-22 21:05:32    阅读次数:168
Unity3d shader之SWAP Force Depth-of-Field Shader
由于博主常年逃课,所以期末考试期间只能突击,但偶尔还能拿个奖学金啥的,哈哈,所以近一个月没有做游戏,也没有发博客= =。。。 这个景深的方法很简单 我们需要求的是CoC(circle of confusion)模糊圈 CoC与R相关 主要原理如下图所示 alpha是透镜的半径 zf为焦点,z为物距 要求R知道一些高中的三角公式就可以了 再根据CoC决定模糊...
分类:编程语言   时间:2015-12-21 08:11:22    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!