📄 movingaverage.html
字号:
</TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MovingAverage()"><!-- --></A><H3>MovingAverage</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.60"><B>MovingAverage</B></A>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="createMovingAverage(org.jfree.data.time.TimeSeriesCollection, java.lang.String, int, int)"><!-- --></A><H3>createMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html" title="class in org.jfree.data.time">TimeSeriesCollection</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.75"><B>createMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html" title="class in org.jfree.data.time">TimeSeriesCollection</A> source, java.lang.String suffix, int periodCount, int skip)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/time/TimeSeriesCollection.html" title="class in org.jfree.data.time"><CODE>TimeSeriesCollection</CODE></A> containing a moving average series for each series in the source collection.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source collection.<DD><CODE>suffix</CODE> - the suffix added to each source series name to create the corresponding moving average series name.<DD><CODE>periodCount</CODE> - the number of periods in the moving average calculation.<DD><CODE>skip</CODE> - the number of initial periods to skip.<DT><B>Returns:</B><DD>A collection of moving average time series.</DL></DD></DL><HR><A NAME="createMovingAverage(org.jfree.data.time.TimeSeries, java.lang.String, int, int)"><!-- --></A><H3>createMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.119"><B>createMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> source, java.lang.String name, int periodCount, int skip)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time"><CODE>TimeSeries</CODE></A> containing moving average values for the given series. If the series is empty (contains zero items), the result is an empty series.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source series.<DD><CODE>name</CODE> - the name of the new series.<DD><CODE>periodCount</CODE> - the number of periods used in the average calculation.<DD><CODE>skip</CODE> - the number of initial periods to skip.<DT><B>Returns:</B><DD>The moving average series.</DL></DD></DL><HR><A NAME="createPointMovingAverage(org.jfree.data.time.TimeSeries, java.lang.String, int)"><!-- --></A><H3>createPointMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.210"><B>createPointMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time">TimeSeries</A> source, java.lang.String name, int pointCount)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/time/TimeSeries.html" title="class in org.jfree.data.time"><CODE>TimeSeries</CODE></A> containing moving average values for the given series, calculated by number of points (irrespective of the 'age' of those points). If the series is empty (contains zero items), the result is an empty series. <p> Developed by Benoit Xhenseval (www.ObjectLab.co.uk).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source series.<DD><CODE>name</CODE> - the name of the new series.<DD><CODE>pointCount</CODE> - the number of POINTS used in the average calculation (not periods!)<DT><B>Returns:</B><DD>The moving average series.</DL></DD></DL><HR><A NAME="createMovingAverage(org.jfree.data.xy.XYDataset, java.lang.String, long, long)"><!-- --></A><H3>createMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.260"><B>createMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> source, java.lang.String suffix, long period, long skip)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A> containing the moving averages of each series in the <code>source</code> dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source dataset.<DD><CODE>suffix</CODE> - the string to append to source series names to create target series names.<DD><CODE>period</CODE> - the averaging period.<DD><CODE>skip</CODE> - the length of the initial skip period.<DT><B>Returns:</B><DD>The dataset.</DL></DD></DL><HR><A NAME="createMovingAverage(org.jfree.data.xy.XYDataset, java.lang.String, double, double)"><!-- --></A><H3>createMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.282"><B>createMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> source, java.lang.String suffix, double period, double skip)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A> containing the moving averages of each series in the <code>source</code> dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source dataset.<DD><CODE>suffix</CODE> - the string to append to source series names to create target series names.<DD><CODE>period</CODE> - the averaging period.<DD><CODE>skip</CODE> - the length of the initial skip period.<DT><B>Returns:</B><DD>The dataset.</DL></DD></DL><HR><A NAME="createMovingAverage(org.jfree.data.xy.XYDataset, int, java.lang.String, double, double)"><!-- --></A><H3>createMovingAverage</H3><PRE>public static <A HREF="../../../../org/jfree/data/xy/XYSeries.html" title="class in org.jfree.data.xy">XYSeries</A> <A HREF="../../../../src-html/org/jfree/data/time/MovingAverage.html#line.315"><B>createMovingAverage</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> source, int series, java.lang.String name, double period, double skip)</PRE><DL><DD>Creates a new <A HREF="../../../../org/jfree/data/xy/XYSeries.html" title="class in org.jfree.data.xy"><CODE>XYSeries</CODE></A> containing the moving averages of one series in the <code>source</code> dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source dataset.<DD><CODE>series</CODE> - the series index (zero based).<DD><CODE>name</CODE> - the name for the new series.<DD><CODE>period</CODE> - the averaging period.<DD><CODE>skip</CODE> - the length of the initial skip period.<DT><B>Returns:</B><DD>The dataset.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MovingAverage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jfree/data/time/Month.html" title="class in org.jfree.data.time"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/data/time/Quarter.html" title="class in org.jfree.data.time"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/data/time/MovingAverage.html" target="_top"><B>FRAMES</B></A> <A HREF="MovingAverage.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -