码迷,mamicode.com
首页 >  
搜索关键字:density peaks    ( 329个结果
Leetcode: Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple peaks, in ...
分类:其他好文   时间:2014-12-18 00:17:44    阅读次数:146
[PCB 规范]IPC low density
Altium designer 中PCB封装经常能见到IPC low density(低密度)、IPC medium density(中密度)、IPC high density(高密度)之类的同一种封装,例如TSSOP16,为什么这么表述? IPC是美国“印制电路板协会”(“The Insti...
分类:其他好文   时间:2014-12-12 10:03:14    阅读次数:334
C 语言字符串和格式化输入与输出
1.前导程序 1 #include 2 #include //1提供strlen()的函数原型 3 #define DENSITY 62.4 //2预处理命令 4 int main(void) 5 { 6 float weight,volume; 7 int ...
分类:编程语言   时间:2014-12-09 17:27:56    阅读次数:271
LeetCode Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple peaks, in ...
分类:其他好文   时间:2014-12-08 21:25:17    阅读次数:177
DPI和px直接的关系
首先屏幕的分辨率和dpi,px没有关系。 因为有 1080x1920的电视屏幕(45英寸), 也有1080x1920的手机屏幕(5.5英寸) 一英寸有多少个点儿? 我们用来density来分辨 ldpi 120dpi 0.75 mdpi 160dpi 1 一般是HVGA hd...
分类:其他好文   时间:2014-12-05 17:37:21    阅读次数:817
Clustering by density peaks and distance
这次介绍的是Alex和Alessandro于2014年发表在的Science上的一篇关于聚类的文章[13],该文章的基本思想很简单,但是其聚类效果却兼具了谱聚类(Spectral Clustering)[11,14,15]和K-Means的特点,着实激起了我的极大的兴趣,该聚类算法主要是基于两个基本...
分类:其他好文   时间:2014-12-04 21:30:15    阅读次数:281
Android屏幕适配
一、度量单位(dp,sp,px)px是Pixels的缩写,是常用的像素单位,对应的是屏幕上的点。在不同分辨率的屏幕上,使用px作为单位的组件尺寸会不一致。相同px的组件,分辨率越大,实际显示尺寸越小dip/dpdp(density-independent pixel)是与密度无关的像素单位,也就是d...
分类:移动开发   时间:2014-12-03 12:05:11    阅读次数:193
Android 中dp和px
dp是虚拟像素,在不同的像素密度的设备上会自动适配,比如:在320x480分辨率,像素密度为160,1dp=1px在480x800分辨率,像素密度为240,1dp=1.5px计算公式:1dp*像素密度/160 = 实际像素数float density = context.getResources()...
分类:移动开发   时间:2014-11-28 18:00:50    阅读次数:170
three.js 源码注释(三十二)Scenes/FogExp2.js
FogExp2对象的构造函数.用来在场景内创建指数雾效,指数雾效是雾效浓度递增根据指数(参数density)设定,Fog对象的功能函数采用 定义构造的函数原型对象来实现. 用法: var fog = new THREE.FogExp2(THREE.colorKeywords.cyan,0.3); 在场景中添加指数雾效,雾效递增的质素是0.3,雾效的颜色是cyan, FogExp2 雾...
分类:Web程序   时间:2014-11-28 16:23:23    阅读次数:241
设备适配以及dp、ppi、sp等相关概念图文理解
1. dpi是dot per inch,每英寸多少点,ppi是 Pixel per inch,每英寸像素数,针对显示器的设计时,dpi=ppi。 而安卓代码中常用density(点密度)来表示。ppi的计算方式呢可以根据勾股定理以及小学数学知识就能算出了哈哈, 例如小米2s分辨率1280*720,4.3寸。 这样的话可以得到ppi=(√1280^2+720^2)/4.3=341.53...
分类:其他好文   时间:2014-11-22 14:42:32    阅读次数:298
329条   上一页 1 ... 25 26 27 28 29 ... 33 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!