码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
使用Bitmap createBitmap遇到的问题
public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height,             Matrix m, boolean filter) 在使用这个方法进行图片缩放裁剪时,x,y的意思理解错误,导致结果不是我想要的效果。 这里的x,y的值在源代码中有说明,但是我没有注意,应该是获...
分类:其他好文   时间:2014-12-12 19:10:59    阅读次数:406
矩阵快速幂
typedef struct { LL m[MAX][MAX]; } Matrix; LL a,b,c,n,f1,f2; Matrix P = {0,0,0, 0,0,0, 0,0,0, };//这个是更具你自己构造出来的矩阵 Matrix I = {0,0,0, 0,0,0, ...
分类:其他好文   时间:2014-12-12 00:06:17    阅读次数:299
【LeetCode】Spiral Matrix II
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:其他好文   时间:2014-12-11 15:32:53    阅读次数:135
【LeetCode】Spiral Matrix
Spiral MatrixGiven a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[...
分类:其他好文   时间:2014-12-11 14:00:09    阅读次数:102
Matrix 与 ColorMatrix
Matrix:简单用法就是直接使用它的setXX()方法而高级一点来理解他就是去理解一个线性矩形首先我们来认识线性矩形:(用画图粗略地画不要见怪)分析:那还有一组 MRERSP_0 MRERSP_1是干什么的呢?等下告诉你如:选择90度 那九十度就放进去a角里Float [] x={1.0f,0.0...
分类:其他好文   时间:2014-12-10 17:48:27    阅读次数:261
Android常用代码
1、图片旋转Bitmap bitmapOrg = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.moon);Matrix matrix = new Matrix();matrix.postRotat...
分类:移动开发   时间:2014-12-10 12:14:14    阅读次数:207
判断一个任意大小的矩阵是否为单位矩阵
《C和指针》第8章编程练习第4题:修改前一个问题中的 identity_matrix 函数,它可以对数组进行扩展,从而能够接受任意大小的矩阵参数。函数的第1个参数应该是一个整型指针,你需要第2个参数,用于指定矩阵的大小。 1 /* 2 ** 判断一个矩阵是否为单位矩阵 3 ** 矩阵为任意大小 4 ...
分类:其他好文   时间:2014-12-10 12:11:18    阅读次数:255
careercup-排序和查找 11.6
11.6 给定M*N矩阵,每一行、每一列都按升序排序,请编写代码找出某元素。类似leetcode:Search a 2D Matrix但是与leetcode中这题不同的是下一行的第一个元素不一定大于上一行的最后一个元素。所以使用二分查找有点麻烦。解法一:通过观察我们可知:若列的开头大于x,那么x位于...
分类:编程语言   时间:2014-12-09 19:21:05    阅读次数:233
单元刚度矩阵 C++
由于C++没有封装矩阵类,所以还是用到了《计算机常用数值算法与程序》(C++)一书中的头文件“Matrix.h”。对《有限单元法》书中的例题进行了编程验算,编程水平太菜。程序冗杂得不行了... 题目:给出了一个勾三股四的单元三角形,弹性模量E和泊松比v已知,单元厚度t=1。求单元的刚度矩阵; ...
分类:编程语言   时间:2014-12-09 17:34:48    阅读次数:249
【LeetCode】Set Matrix Zeroes (2 solutions)
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you us...
分类:其他好文   时间:2014-12-09 15:37:20    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!