`
温柔一刀
  • 浏览: 866243 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
换手率是指在一定时间内市场中股票转手买卖的频率,是反映股票流通性的指标之一。 计算公式描述为为:换手率=(某一段时间内的成交量/流通股数)c。 计算公式: VOL/CAPITAL*100%; 一般来说,当股价处于低位时,当日换手率达到4%左右时应引起投资者的关注,而上升途中换手率达到20%左右时则应引起警惕。
http://www.iteye.com/post/475217 现在有12个金币,其中一个有质量问题(或重或轻),还有一个无砝码的天平,让你称三次怎么样找到那个有质量问题的金币? 这个题目是比较经典的智力题,俺记得第一次解这个题目是学二叉树的时候,俺当时死活要跟二叉树联系起来,汗 一种解法: 第一个量重比较是 4 对 4 考虑以下两个可能: A) 左边比较重 B) 两边一样重 若是 A),那么假的金币就在天秤上,即是说余下的金币全都是真的,为了方便,把金币命名如下: H1, H2, H3, H4, L1, L2, L3, L4, R1, R2, R3, R4 当中 H1, ...
(1)、均线多头排列 a1:=MA(CLOSE,n1); a2:=MA(CLOSE,n2); a3:=MA(CLOSE,n3); a4:=MA(CLOSE,n4); COUNT(a1>a2 AND a2>a3 AND a3>a4,3)=3 AND CLOSE>OPEN; 注:n1、n2、n3、n4日均线呈多头排列。 (2)、均线空头排列 a1:=MA(CLOSE,n1); a2:=MA(CLOSE,n2); a3:=MA(CLOSE,n3); a4:=MA(CLOSE,n4); COUNT(a1<a2 AND a2<a3 AND a ...
常用通式 一、放量、缩量(成交量函数为VOL) 1、放量: (1).今天成交量较昨天增加了1倍,表示如下: VOL/REF(VOL,1)>2 (2).今天成交量较10个交易日平均成交量放大了1倍,表示如下:VOL/MA(VOL,10)>2; (3).今日的5日均量较10个交易日平均成交量放大了1倍,表示如下:MA(VOL,10)/MA(VOL,5)>2; (4).今日的成交量超过了整个流通盘的5%,表示如下:VOL/CAPITAL>0.05; 其中CAPITAL代表流通股。 2、缩量 (1).今日成交量较昨日减少了一半,表示如下: VOL/REF(VOL,1)< ...
JACOB一个JAva-COM中间件.通过这个组件你可以在Java应用程序中调用COM组件和Win32 libraries。 import com.jacob.activeX.ActiveXComponent; import com.jacob.com.Dispatch; public class FaxDocumentProperties { public void sendFax(String filename) { ActiveXComponent objFax = new ActiveXComponent("FaxServer.Fa ...
随着宽带网的大量普及,原来拨号时代的 Modem们已经很少有人再去关注它们,它们有的被遗弃在角落里,有的留在了机箱上,再也没有了以前的风采。但很多朋友的Modem当时买来时也都是身价不菲,现在就这样放着,总感觉有点浪费,怎么样才能让这些Modem发挥一下余热呢?   其实,现在我们能见到的绝大多数Modem都支持传真功能。而我们平时使用的Windows操作系统(包括Windows 95、Windows 98、Windows XP)也都内置了传真组件,只不过因为当时大家只想着用Modem上网,买“猫”也只注意这个目的,很少有人注意它的传真功能罢了。今天就以 Windows XP操作系统和ECOM ...

Fast Query

class System::FastQuery def self.sub_join_str(model) Util.is_submodel(model) ? " AND #{model.table_name}.#{model.inheritance_column} = '#{model.name.demodulize}'" : "" end class Conditions attr_reader :conditions def initialize(model) @model = model @ ...
I think that I shall never see A poem as lovely as a tree... "Trees," [Alfred] Joyce Kilmer Trees in computer science are a relatively intuitive concept (except that they are usually drawn with the "root" at the top and the "leaves" at the bottom). This is because ...
Stacks and queues are the first entities we have discussed that are not strictly built into Ruby. By this we mean that Ruby does not have Stack and Queue classes as it does Array and Hash classes (except for the Queue class in tHRead.rb, which we'll mention later). And yet, in a way, they are bui ...
We've already seen how certain methods of the Array class let it serve as an acceptable representation of a mathematical set. But for a little more rigor and a little tighter coding, Ruby has a Set class that hides more of the detail from the programmer. A simple require makes the Set class avail ...
What makes a collection enumerable? Largely it is just the fact of being a collection. The module Enumerable has the requirement that the default iterator each should be defined. Sequence as such is not an issue since even an unordered collection such as a hash can have an iterator. Additionally, ...
Hashes are known in some circles as associative arrays, dictionaries, and various other names. Perl and Java programmers in particular will be familiar with this data structure. Think of an array as an entity that creates an association between an index x and a data item y. A hash creates a simila ...
http://www.ibm.com/developerworks/cn/xml/x-securemashups/index.html?S_TACT=105AGX52&amp;S_CMP=techcsdn
Levenshtein距离 class String def levenshtein(other, ins=2, del=2, sub=1) return nil if self.nil? return nil if other.nil? dm = [] dm[0] = (0..self.length).collect { |i| i * ins } fill = [0] * (self.length - 1) for i in 1..other.length dm[i] = [i * de ...
rot13编码和解码 class String def rot13 self.tr("A-Ma-mN-Zn-z","N-Zn-zA-Ma-m") end end test="test" test=test.rot13 #"grfg" test=test.rot13 #"test" base64字符串的编码和解码 str = "test" new_string=[str].pack("m") #"dGVzdA==\n" ...
Global site tag (gtag.js) - Google Analytics