Class Index | File Index

Classes


Class CeL.data

data 處理的 functions
Defined in: data.origin.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
null module constructor
Method Summary
Method Attributes Method Name and Description
<static>  
CeL.data.char_frequency(text)
測出各字元的出現率。 普通使用字元@0-127:9-10,13,32-126,reduce後常用:9,32-95,97-125
<static>  
CeL.data.count_word(text, flag)
計算字數 count words.
<static>  
CeL.data.dec_to_bin(number, places)
運算式值的二進位表示法 已最佳化:5.82s/100000次dec_to_bin(20,8)@300(?)MHz,2.63s/100000次dec_to_bin(20)@300(?)MHz
<static>  
CeL.data.same_length(s1, s2)
test if 2 string is at the same length
<static>  
CeL.data.set_obj_value(obj, value, type, mode)
設定object之值,輸入item=[value][,item=[value].
<static>  
CeL.data.split_String_to_Object(value_set, assignment_char, end_char)
將字串組分作 Object
<static>  
CeL.data.to_SI_prefix(number, digits)
將數字轉為 K, M, G 等 SI prefixes 表示方式,例如 6458 轉成 6.31K。
Class Detail
CeL.data()
null module constructor
Method Detail
<static> CeL.data.char_frequency(text)
測出各字元的出現率。 普通使用字元@0-127:9-10,13,32-126,reduce後常用:9,32-95,97-125
Parameters:
{String} text
文檔
Returns:

<static> {Number} CeL.data.count_word(text, flag)
計算字數 count words.
Parameters:
{String} text
文檔
{Number} flag
文檔格式/處理方法
Returns:
{Number} 字數

<static> CeL.data.dec_to_bin(number, places)
運算式值的二進位表示法 已最佳化:5.82s/100000次dec_to_bin(20,8)@300(?)MHz,2.63s/100000次dec_to_bin(20)@300(?)MHz

					
					
					
						
							
Parameters:
{Number} number
number
places
places,字元數,使用前置0來填補回覆值
Returns:

<static> CeL.data.same_length(s1, s2)
test if 2 string is at the same length
Parameters:
s1
string 1
s2
string 2
Returns:

<static> CeL.data.set_obj_value(obj, value, type, mode)
設定object之值,輸入item=[value][,item=[value]..]。 value未設定會自動累加。 使用前不必需先宣告…起碼在現在的JS版本中
Parameters:
obj
object name that need to operate at
value
valueto set
type
累加 / value type
mode
mode / value type
Returns:

<static> CeL.data.split_String_to_Object(value_set, assignment_char, end_char)
將字串組分作 Object
Parameters:
{String} value_set
字串組, e.g., 'a=12,b=34'
assignment_char
char to assign values, e.g., '='
end_char
end char of assignment
Since:
2006/9/6 20:55, 2010/4/12 23:06:04
Returns:

<static> CeL.data.to_SI_prefix(number, digits)
將數字轉為 K, M, G 等 SI prefixes 表示方式,例如 6458 轉成 6.31K。
Parameters:
{Number} number
數字
{Number} digits
to fixed digit
Returns:
{String} SI prefixes 表示方式
Requires:
setTool,to_fixed

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Aug 20 2011 15:07:29 GMT+0800 (CST)