import numpy as np import matplotlib.pyplot as plt def is_outlier(points,threshold=3.5): '''Return a boolen array with True if points are out liers an... ...
分类:
其他好文 时间:
2017-02-26 19:28:53
阅读次数:
177
<!DOCTYPE html><html><head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>圣诞主题</title> <link rel='stylesheet' href='htt ...
分类:
Web程序 时间:
2017-02-26 18:38:48
阅读次数:
303
The Closest M Points 【问题描述】 软工学院的课程很讨厌!ZLC同志遇到了一个头疼的问题:在K维空间里面有许多的点,对于某些给定的点,ZLC需要找到和它最近的m个点。 (这里的距离指的是欧几里得距离:D(p, q) = D(q, p) = sqrt((q1 - p1) ^ 2 + ...
分类:
其他好文 时间:
2017-02-25 18:23:17
阅读次数:
224
http://www.cnblogs.com/xwdreamer/archive/2011/07/20/2296975.html 1.Apache POI简介 Apache POI是Apache软件基金会的开放源码函式库,POI提供API给Java程式对Microsoft Office格式档案读和写 ...
分类:
其他好文 时间:
2017-02-25 11:58:02
阅读次数:
305
最近在一个项目上执行文件的搬移功能时发现总是失败,临时录像文件存放于emmc的/tmp/目录下,当录像完成时候则调用rename企图将此文件搬到/mnt/sdcard/mmcblk1p1/(这是外置的sd卡)上面,但是每次执行rename的时候都返回失败了。 man 2 rename解释如下: EF ...
分类:
编程语言 时间:
2017-02-23 13:34:49
阅读次数:
428
Catch That Cow Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N ...
分类:
其他好文 时间:
2017-02-22 13:25:59
阅读次数:
202
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 要求是输入n个坐标点,输出最多有多少个点在同一条直线上。 代码提交如下: 不足之处: 利用y = k ...
分类:
其他好文 时间:
2017-02-20 00:49:41
阅读次数:
249
lock锁的相关概念latch锁的粒度表锁tm模拟一个被锁住的情况,分析阻塞源头。模拟环境分析锁的源头的过程oracle数据库的锁锁的兼容性系统夯住怎么办1,查到进程号,直接用操作系统杀死进程。2、使用oradebug3、sqlplus -prelim / as sysdba4、gdb lock 锁... ...
分类:
其他好文 时间:
2017-02-19 12:37:55
阅读次数:
305
我们知道Kubernetes的service只能实现基于4层的负载均衡,无法提供7层之上的许多特性,诸如基于URL的负载均衡,SSL支持,三方授权等等;Ingress可以实现七层负载均衡的许多功能,唯一的遗憾就是无法提供一个固定的接入IP。想想当你为业务申请了一个域名后准备将域名绑定到Ingress ...
分类:
Web程序 时间:
2017-02-17 18:06:36
阅读次数:
551
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a ...
分类:
其他好文 时间:
2017-02-12 21:06:41
阅读次数:
209