码迷,mamicode.com
首页 >  
搜索关键字:tile    ( 284个结果
机器学习算法
监督学习KNNK近邻算法defclassify0(inX,dataSet,labels,k):dataSetSize=dataSet.shape[0]diffMat=tile(inX,(dataSetSize,1))-dataSetsqDiffMat=diffMat**2sqDistances=sqDiffMat.sum(axis=1)distances=sqDistances**0.5sortedDistIndicies=distances.argsort()classCount={}for..
分类:编程语言   时间:2016-08-01 23:25:40    阅读次数:253
Python-Numpy函数-tile函数
tile函数位于python模块 numpy.lib.shape_base中,他的功能是重复某个数组。比如tile(A,n),功能是将数组A重复n次,构成一个新的数组,我们还是使用具体的例子来说明问题: 先来引入numpy下的所有方法 我们创建一个a,如图下图,使用tile来创建b,注意看b的数据结 ...
分类:编程语言   时间:2016-07-24 16:14:07    阅读次数:178
用分治策略实现棋盘覆盖问题
C++程序源代码如下: // 棋盘覆盖.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<fstream> using namespace std; int tile=1; //L型骨牌的编号(递增) in ...
分类:其他好文   时间:2016-07-23 15:05:30    阅读次数:195
poj 1717==洛谷P1282 多米诺骨牌
Dominoes Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6571 Accepted: 2178 Description A domino is a flat, thumbsized tile, the face of w ...
分类:其他好文   时间:2016-06-25 21:35:51    阅读次数:355
POJ1979 Red and Black
速刷一道DFS Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til ...
分类:其他好文   时间:2016-06-14 23:44:01    阅读次数:180
使用tiled-0.16.1创建地图用于cocos2dx
(1)tiled-0.16.1_地图编辑工具 的下载地址(http://www.mapeditor.org) (2)安装后打开,点击左上角的创建一个地图,Tile Layer Format选择Base64,不要选择CSV,否则在调用地图的时候因为格式问题会报错。 地图大小自己决定,我这里用30x30 ...
分类:其他好文   时间:2016-06-09 13:26:51    阅读次数:211
[Ogre][地形]OgreTerrain的实现原理分析
转自:http://www.xuebuyuan.com/1482609.html 一.世界地图 将整个世界切分成多个Tile,每个Tile大小相同,用二维坐标形式索引起来,如图: 中心点(0,0)位置的Tile为世界地图的中心点,例如坐标可以定位为(0,0,0),由于Tile大小相等,世界坐标与Ti ...
分类:其他好文   时间:2016-05-16 17:22:15    阅读次数:273
test spring in category
test tile ...
分类:编程语言   时间:2016-05-15 15:15:26    阅读次数:174
棋盘覆盖(绘图版)
1 #include<graphics.h> 2 #include<stdlib.h> 3 #include<stdio.h> 4 #include<conio.h> 5 #include<time.h> 6 #include<cmath> 7 8 int tile=1; 9 int board[1 ...
分类:其他好文   时间:2016-05-13 08:59:13    阅读次数:174
TILERA--Makefile实例
Makefile文件内容: # Default target. all: ifdef TILERA_ROOT CC = $(TILERA_ROOT)/bin/tile-gcc else ifeq ($(filter tile%,$(shell uname -m)),) $(error The 'TILERA_ROOT' environment variable is...
分类:其他好文   时间:2016-05-12 15:17:54    阅读次数:231
284条   上一页 1 ... 14 15 16 17 18 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!