📄 cwp4281.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.Storage.CreateTimeSeries</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">Perst.Storage.CreateTimeSeries Function</DIV><DIV CLASS="Description">
Create new time series object.
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Public Perst.TimeSeries CreateTimeSeries (System.Type, long)</SPAN></DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" >Type</TD><TD CLASS="TableLightLabel" >Name</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc">System.Type</TD><TD CLASS="TableLightDesc">blockClass</TD><TD CLASS="TableLightDesc">class derived from TimeSeriesBlock</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc">long</TD><TD CLASS="TableLightDesc">maxBlockTimeInterval</TD><TD CLASS="TableLightDesc">maximal difference in system ticks (100 nanoseconds) between timestamps
of the first and the last elements in a block.
If value of this parameter is too small, then most blocks will contains less elements
than preallocated.
If it is too large, then searching of block will be inefficient, because index search
will select a lot of extra blocks which do not contain any element from the
specified range.
Usually the value of this parameter should be set as
(number of elements in block)*(tick interval)*2.
Coefficient 2 here is used to compencate possible holes in time series.
For example, if we collect stocks data, we will have data only for working hours.
If number of element in block is 100, time series period is 1 day, then
value of maxBlockTimeInterval can be set as 100*(24*60*60*10000000L)*2
</TD><TD width=20> </TD></TR></TABLE><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Return</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3143.HTM">TimeSeries</A></TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -