1.      The Lloyd-Max algorithm is hill-climbing algorithm 第六节最后提出一个好的quantizer必须满足Lloyd-Max条件,但满足Lloyd-Max条件的不一定都是最优方案,举个例子: It can be seen in the figure that the rightmost peak is more probable than the other peaks. It follows that the MSE would be…
DI:Dependency Injection(依赖注入),通俗的讲就是一种通过xml配置文件,为交给sping容器的对象初始化参数.又称做控制反转:Inversion of Control(IoC) 依赖注入主要分为四种形式: |-:基于构造方法的依赖注入 |-:基于setter方法的依赖注入 |-:基于工厂的注入 |-:基于泛型的注入  基于构造方法的依赖注入又可以分为以下几种: ·复杂数据类型: ·简单数据类型: |- 基于属性类型(type) |-基于索引(index) |-基于参数名称…
IPTV的服务质量(QoE)要求 Quality of experience requirements for IPTV services Summary This Recommendation defines user requirements for Quality ofExperience for IPTV services. The QoE requirements are defined from an end userperspective and are agnostic to n…
首先明确一点,在计算机中,只有二进制的数据! 一.java_web乱码问题的由来 1.字符集 1.1 ASCII字符集 在早期的计算机系统中,使用的字符非常少,这些字符包括26个英文字母.数字符号和一些常用符号(包括控制符号),对这些字符进行编码,用1个字节就足够了(1个字节可以表示28=256种字符).然而实际上,表示这些字符,只使用了1个字节的7位,这就是ASCII编码1.ASCII ASCII(American Standard Code for Information Interchan…
what's the SOX         SoX(即 Sound eXchange)是一个跨平台(Windows,Linux,MacOS 等)的命令行实用程序,可以将各种格式的音频文件转换为需要的其他格式.SoX 还可以对输入的音频文件应用各种效果,也支持在大多数平台上播放和录制音频文件. Windows下载链接:https://sourceforge.net/projects/sox/files/sox/ SoX  可以读取和写入常见格式的音频文件,并在此过程中选择性的加入一些声音效果.可…
import requests from lxml import etree import time ''' 黑板爬虫闯关 网址:http://www.heibanke.com/lesson/crawler_ex00/ ''' start_time = time.time() start_url = "http://www.heibanke.com/lesson/crawler_ex00/" res = requests.get(start_url) res.encoding = &q…
Keywords: Source types, Discrete source coding, Kraft inequality 1.      Source classes About Figure 1.1 in LESSON1, the source encoder converts the sequence of symbols from the source to a sequence of binary digits, preferably using as few binary di…
Deferred lighting separate lighting rendering and make lighting a completely image-space technique. This is very different the forward rendering. At first as the limitation of the hardware, we could make per-object lit by max number of 8 lights at on…
发表在我的独立网站http://kesenhoo.github.io/blog/2013/06/30/android-training-ui-creating-custom-views-lesson-0/ ,欢迎访问! Android的framework有大量的Views用来与用户进行交互并显示不同种类的数据.但是有时候你的程序有个特殊的需求,而Android内置的views组件并不能实现.这一章节会演示如何创建你自己的views,并使得它们是robust与reusable的. Dependen…
ref:http://www.raywenderlich.com/52080/introduction-core-bluetooth-building-heart-rate-monitor The Core Bluetooth framework lets your iOS and Mac apps communicate with Bluetooth low energy devices (Bluetooth LE for short). Bluetooth LE devices includ…
https://trac.ffmpeg.org/wiki/Encode/H.264 FFmpeg and H.264 Encoding Guide Contents Constant Rate Factor (CRF) Two-Pass Lossless H.264 Overwriting default preset settings Additional Information & Tips FAQ Additional Resources The goal of this guide is…
Part 1 <06/05/07 12:08pm> Manao | he is negating a float by printing it, adding a "-" to the string, and converting it back to float <06/05/07 12:08pm> Manao | in the process, of course, he doesn't free the allocated string <06/05…
http://www.cypress.com/knowledge-base-article/interfacing-sram-jtag-signals-using-voltage-level-shifter-kba81536 As a best practice, avoid use of level-shifting ICs with open-drain output. This type of level-shifter requires a resistive pull-up to ac…
A computer-implemented method and apparatus in a computer system of processing data generated by a first application program in a second application program during runtime. During runtime, the first application program generates a record including a…
来源:http://asciiwwdc.com/2014/sessions/513   Direct Access to Video Encoding and Decoding  Session 513 WWDC 2014 Discover how to use AV Foundation and Video Toolbox to access hardware accelerated encoding and decoding services. Gain best practices fo…
如果输入本身就是离散的(比如text, computer files…), 对于这种discrete sources不需要量化可以直接进行离散信源编码. 如果输入是waveform(比如声音),取样为模拟信号,那么在进行离散编码前需要进行量化,将模拟信号转为数字信号. If input is discrete (such as text, computer files...), then there is no need quantizing such discrete sources. If…
Text After I had had lunch at a village pub, I looked for my bag. I had left it on a chair beside the door and now it wasn't there! As I looking for it, the landlord came in. 'Did you have a good meal?' he asked. 'Yes, thank you,' I answered, 'but I…
由于另外负责编码的同事用的是utf-8,我用的默认的编码格式gbk,在提交代码时,为了迁就他,我打算把格式用工具转成utf-8. 转化成果后,然后在make一下,发现javac -encoding utf-8通过不了,illegal charater. 用记事本查看的确是UTF-8格式. 还有一个前提是,因为做的项目是在linux运行的,但我们是在window下开发的.这便是症结所在. 在window中,utf-8编码的文件头部被加了两个额外的标记,这个在linux下是没有的,用16进制编辑器打…
Odoo8创建数据库时,显示如下错误信息: DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template. 解决方法: First, we need to drop template1.…
如何在Node.js中encode一个字符串呢?是否也像在PHP中使用base64_encode()一样简单? 在Node.js中有许多encoding字符串的方法,而不用像在JavaScript中那样定义各种不同的全局函数.下面是如何在Node.js中将一个普通字符串encode成Base64格式的代码: var b = new Buffer('JavaScript'); var s = b.toString('base64'); // SmF2YVNjcmlwdA== 下面是decode b…
昨天项目中遇到一个 java.lang.IllegalArgumentException: Malformed \uxxxx encoding.这样的一个异常,debug了一下发现是读取properties里面的配置文件路径的时候发生的.网上找了一些解决方案,只要把路径中的"\"改为"/"就行了,或者改为"\\"也行.…
http://www.howtogeek.com/177790/why-you-cant-use-cpu-clock-speed-to-compare-computer-performance/ Why You Can't Use CPU Clock Speed to Compare Computer Performance Shopping for a new computer? Don't pay too much attention to CPU clock speed. "CPU spe…
https://en.wikipedia.org/wiki/Clock_rate The clock rate typically refers to the frequency at which a chip like a central processing unit (CPU), one core of a multi-core processor, is running and is used as an indicator of the processor's speed. It is…
http://www.cnblogs.com/xuxm2007/archive/2010/10/26/1861223.html svn 版本库中有文件是以中文字符命名的,在 Linux 下 checkout 会报错: svn: Can't convert string from 'UTF-8' to native encoding 然后 checkout 程序就退出了! 解决办法很简单,正确设置当前系统的 locale: export LC_CTYPE="zh_CN.UTF-8" 然后…
在网络通信中,很多情况下都是将字符信息转成字节序列进行传输.将字符序列转为字节序列的过程称为编码.当这些字节传送到接收方,接收方需要逆向将字节序列转为字符序列.这个过程就是解码. 常见编码有ASCII字符集 ,非ASCII字符集 如GB2312 GB18030等,Unicode字符集. 在C#中,字符集默认是Unicode,一个英文占2个字节,一个汉字也占2个字节.Unicode能够表示大部分国家的文字,但是空间占用相对ASCII较为浪费. 为了节约空间,后续出现了UTF-8,UTF-16,UT…
这篇博客很全面 http://www.cnblogs.com/cdeng/p/3471527.html ROC曲线 1.混淆矩阵(confusion matrix) 针对预测值和真实值之间的关系,我们可以将样本分为四个部分,分别是: 真正例(True Positive,TP):预测值和真实值都为1 假正例(False Positive,FP):预测值为1,真实值为0 真负例(True Negative,TN):预测值与真实值都为0 假负例(False Negative,FN):预测值为0,真实值…
字符集和字符编码(Charset & Encoding)[转] 1.基础知识 计算机中储存的信息都是用二进制数表示的:而我们在屏幕上看到的英文.汉字等字符是二进制数转换之后的结果.通俗的说,按照何种规则将字符存储在计算机中,如'a'用什么表示,称为"编码":反之,将存储在计算机中的二进制数解析显示出来,称为"解码",如同密码学中的加密和解密.在解码过程中,如果使用了错误的解码规则,则导致'a'解析成'b'或者乱码. 字符集(Charset):是一个系统支持的…
some characters cannot be mapped using "Cp1251" character encoding. 解决办法:方案一: eclipse->Window->Preferences->General->Content Types->Text->Java Properties File设置Default encoding,把ISO-8859-1改为UTF-8  然后update.  方案一没有解决,直接点击图片中第二个b…
version="1.0" 声明用的xml版本是1.0 encoding="UTF-8" 声明用xml传输数据的时候的字符编码,假如文档里面有中文,编码方式不是UTF-8,传输过去再解码的话中文就会是乱码…
Detailed Description Heart Rate Service module. This module implements the Heart Rate Service with the Heart Rate Measurement, Body Sensor Location and Heart Rate Control Point characteristics. During initialization it adds the Heart Rate Service and…