码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
矩阵类的python实现
科学计算离不开矩阵的运算。当然,python已经有非常好的现成的库:numpy。我写这个矩阵类,并不是打算重新造一个轮子,只是作为一个练习,记录在此。注:这个类的函数还没全部实现,慢慢在完善吧。全部代码: 1 import copy 2 3 class Matrix: 4 '''矩...
分类:编程语言   时间:2015-03-04 22:19:33    阅读次数:260
[LeetCode] Spiral Matrix
Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],...
分类:其他好文   时间:2015-03-04 20:41:11    阅读次数:161
Spring-1-I 233 Matrix(HDU 5015)解题报告及测试数据
233 MatrixTime Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uDescriptionIn our daily life we often use 233 to express our feelings. A...
分类:编程语言   时间:2015-03-04 01:03:12    阅读次数:255
【bitset】hdu4920 Matrix multiplication
先把两个矩阵全都mod3。S[i][j][k]表示第i(0/1)个矩阵的行/列的第k位是不是j(1/2)。然后如果某两个矩乘对应位上为1、1,乘出来是1;1、2:2;2、1:2;2、2:1。然后分这四种情况把bitset and 起来,然后用count()数一下个数,计算下对答案矩阵该位置的贡献即可...
分类:其他好文   时间:2015-03-03 22:02:54    阅读次数:134
[LeetCode] Rotate Image
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路一:b[i][j] = a[n-1...
分类:其他好文   时间:2015-03-03 14:55:40    阅读次数:140
LeetCode --- 48. Rotate Image
题目链接: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? 这道题的要求是将n*n的矩阵顺时针旋转90°,要求原地旋转,即不申请额外空间...
分类:其他好文   时间:2015-03-03 11:52:31    阅读次数:269
CSS3学习笔记--transform中的Matrix(矩阵)
transform: matrix(a,b,c,d,e,f) ,如下图矩阵所示,任意点(x,y,1)经过matrix变化为(ax+cy+e,bx+dy+f,1),由此可以知道,matrix参数与translate/scale/skew/rotate函数参数的对应关系为:translate(tx,ty...
分类:Web程序   时间:2015-03-02 18:33:34    阅读次数:125
CSS3 Transform
Transform字面上就是变形,改变的意思。在CSS3中transform主要包括以下几种:旋转rotate、扭曲skew、缩放scale和移动translate以及矩阵变形matrix。下面我们一起来看看CSS3中transform的旋转rotate、扭曲skew、缩放scale和移动trans...
分类:Web程序   时间:2015-03-02 18:27:29    阅读次数:142
生物膜(11)_基因转录
These bacterial pioneers facilitate the arrival of other pathogens by providing more diverse adhesion sites. They also begin to build the matrix that ...
分类:其他好文   时间:2015-03-02 13:02:32    阅读次数:154
【学长虐学弟欢乐赛系列】Round2
第二套题 出题人:Lavender 神犇地址:Lavender学姐的blog 试题下载地址 数据下载地址 T1 matrix **主要题干:**Neo 会干很多事,除了跑暴力程序看视频之外,还会做出去玩玩 和用鼠标乱点之类的事,甚至会一脚踢掉电源……这些事有的会让做 这件事的这段时间内 CPU 使用率增加或减少一个值;有的事还会直 接让 CPU 使用率变为一个值。 当然 Neo...
分类:其他好文   时间:2015-03-01 17:08:12    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!