亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timeseriesbuilder.java

?? 搞算法預測的可以來看。有移動平均法
?? JAVA
字號:
////  OpenForecast - open source, general-purpose forecasting package.//  Copyright (C) 2004  Steven R. Gould////  This library is free software; you can redistribute it and/or//  modify it under the terms of the GNU Lesser General Public//  License as published by the Free Software Foundation; either//  version 2.1 of the License, or (at your option) any later version.////  This library is distributed in the hope that it will be useful,//  but WITHOUT ANY WARRANTY; without even the implied warranty of//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU//  Lesser General Public License for more details.////  You should have received a copy of the GNU Lesser General Public//  License along with this library; if not, write to the Free Software//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//package net.sourceforge.openforecast.input;import org.jfree.data.time.RegularTimePeriod;import org.jfree.data.time.TimeSeries;import org.jfree.data.time.TimeSeriesDataItem;import net.sourceforge.openforecast.DataPoint;import net.sourceforge.openforecast.DataSet;import net.sourceforge.openforecast.Observation;/** * Defines a Builder that can be used to construct a DataSet from a TimeSeries * object as used/defined by JFreeChart. This class makes for a quick and easy * "import" of data from a JFreeChart TimeSeries. * * Note that since a TimeSeries does not give a name to the independent, time * variable, this builder defaults the name to be the class name of the * RegularTimePeriod used in the TimeSeries. For example, if a series of * org.jfree.data.time.Day objects are used, then the name of the independent * variable will default to "Day" (without the quotes). * @author Steven R. Gould * @since 0.4 */public class TimeSeriesBuilder extends AbstractBuilder{    /**     * Stores the result set from which this builder is to read its data.     */    private TimeSeries timeSeries;        /**     * Constructs a new TimeSeriesBuilder that reads its input from the given     * TimeSeries object. This builder defaults the of the independent, time     * variable to be the class name of the RegularTimePeriod used in the     * TimeSeries. For example, if a series of org.jfree.data.time.Day objects     * are used, then the name of the independent variable will default to     * "Day" (without the quotes).     *     * See the class description for more information.     * @param timeSeries the TimeSeries object containing data to be used to     * build the DataSet.     * @throws IllegalArgumentException if the TimeSeries is empty.     */    public TimeSeriesBuilder( TimeSeries timeSeries )    {        if ( timeSeries.getItemCount() <= 0 )            throw new IllegalArgumentException("TimeSeries cannot be empty.");                this.timeSeries = timeSeries;                // Use base name of TimePeriod class, as name of time variable        RegularTimePeriod timePeriod = timeSeries.getTimePeriod(0);        String name = timePeriod.getClass().getName();        name = name.substring( name.lastIndexOf(".")+1 );        addVariable( name );    }        /**     * Constructs a new TimeSeriesBuilder that reads its input from the given     * TimeSeries object. This builder uses the given name for the independent,     * time variable in the DataPoints that are created.     * @param timeSeries the TimeSeries object containing data to be used to     * build the DataSet.     * @param timeVariableName the name to use for the time variable.     * @throws IllegalArgumentException if the TimeSeries is empty.     */    public TimeSeriesBuilder( TimeSeries timeSeries, String timeVariableName )    {        if ( timeSeries.getItemCount() <= 0 )            throw new IllegalArgumentException("TimeSeries cannot be empty.");                this.timeSeries = timeSeries;        setTimeVariable( timeVariableName );    }        /**     * Returns the name of the currently defined time variable.     * @return the name currently defined for the time variable.     */    public String getTimeVariable()    {        return getVariableName( 0 );    }        /**     * Used to change the time variable name.     * @param name the new name for the time variable.     */    public void setTimeVariable( String name )    {        setVariableName( 0, name );    }        /**     * Retrieves a DataSet - a collection of DataPoints - from the current     * (JFreeChart) TimeSeries. The DataSet should contain all DataPoints     * defined by the TimeSeries.     *     * <p>In general, build will attempt to convert all values in the     * TimeSeries to data points.     * @return a DataSet built from the current TimeSeries.     */    public DataSet build()    {        DataSet dataSet = new DataSet();                dataSet.setTimeVariable( getTimeVariable() );                // Iterate through TimeSeries,        //  creating new DataPoint instance for each row        int numberOfPeriods = timeSeries.getItemCount();        for ( int t=0; t<numberOfPeriods; t++ )            dataSet.add( build(timeSeries.getDataItem(t)) );                return dataSet;    }        /**     * Builds a DataPoint from the given TimeSeriesDataItem. The name used for     * the independent, time variable can be changed using the setTimeVariable     * method.     * @param dataItem the TimeSeriesDataItem from which the values are to be     * read and used to construct a new DataPoint.     * @return a DataPoint object with values as specified by the given     * TimeSeriesDataItem.     */    private DataPoint build( TimeSeriesDataItem dataItem )    {        DataPoint dataPoint            = new Observation( dataItem.getValue().doubleValue() );                // Get time value (at middle of time period)        double timeValue = dataItem.getPeriod().getMiddleMillisecond();                // Store time value as independent variable        dataPoint.setIndependentValue( getVariableName(0),                                       timeValue );                return dataPoint;    }}// Local variables:// tab-width: 4// End:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久久久久久| 欧美三级电影网站| 不卡的av电影| 欧美在线短视频| 欧美日韩美少妇 | 国产欧美精品一区二区三区四区| 久久人人97超碰com| 中文字幕一区二区三区不卡| 亚洲国产精品久久久久秋霞影院| 免费看日韩精品| 91视频在线看| 2020国产成人综合网| 亚洲美女视频在线| 国内一区二区视频| 欧美日韩一级黄| 中文在线免费一区三区高中清不卡| 一区二区三区在线观看国产| 懂色av一区二区三区免费观看 | 亚洲精品高清视频在线观看| 极品瑜伽女神91| 欧美伦理电影网| 亚洲综合久久av| aaa欧美日韩| 亚洲人妖av一区二区| 91在线丨porny丨国产| 国产欧美一区二区在线| 狠狠v欧美v日韩v亚洲ⅴ| 欧美片在线播放| 亚洲777理论| 欧美日韩精品福利| 亚洲国产你懂的| 欧美日韩精品综合在线| 亚洲观看高清完整版在线观看| 成人免费高清在线| 日本一区二区不卡视频| 国产精品一二三区| 国产精品入口麻豆九色| 成人99免费视频| 一区二区不卡在线播放| 欧美私模裸体表演在线观看| 亚洲一区二区偷拍精品| 欧美日韩国产精品成人| 天堂蜜桃一区二区三区| 久久欧美一区二区| 欧美成人精品福利| 成人黄色在线看| 亚洲电影第三页| 久久久亚洲精品石原莉奈| 成人性生交大片免费看在线播放 | 国产999精品久久久久久绿帽| 国产精品亲子伦对白| 欧美日韩高清一区| 国产成都精品91一区二区三| 亚洲三级在线免费| 日韩美女天天操| 91浏览器在线视频| 国产又黄又大久久| 亚洲妇女屁股眼交7| 久久久久久久综合色一本| 欧美中文字幕一区二区三区 | 在线国产亚洲欧美| 国精产品一区一区三区mba桃花| 亚洲日本一区二区| 国产色产综合产在线视频| 91麻豆精品国产91久久久| 成人app软件下载大全免费| 久久国产精品99精品国产| 91精品国产免费久久综合| 一本到不卡精品视频在线观看| 亚洲另类春色校园小说| 一区二区视频在线看| 亚洲成人精品一区| 丁香激情综合国产| 欧美少妇xxx| 欧美网站大全在线观看| 国产成人综合亚洲网站| 日韩黄色一级片| 天天色 色综合| 亚洲国产人成综合网站| 一区二区视频在线| 亚洲欧美精品午睡沙发| 中文字幕在线观看一区二区| 国产日韩成人精品| 国产精品美女久久久久av爽李琼 | 欧美变态tickle挠乳网站| 欧美在线看片a免费观看| 91片在线免费观看| 在线看日韩精品电影| 91色.com| 欧美久久久一区| 日本一区二区三级电影在线观看 | 欧美一级淫片007| 久久精品视频一区| 亚洲网友自拍偷拍| 大胆亚洲人体视频| 欧美剧情电影在线观看完整版免费励志电影| 色播五月激情综合网| 欧美大尺度电影在线| 最新日韩av在线| 国产一区二区视频在线播放| 色哟哟亚洲精品| 国产视频视频一区| 日本 国产 欧美色综合| 99久久国产免费看| 欧美成人一区二区三区片免费| 一区二区三区四区乱视频| 懂色av一区二区夜夜嗨| 久久综合丝袜日本网| 色综合视频在线观看| 国产婷婷色一区二区三区| 国产综合色视频| 久久久久久毛片| 懂色av一区二区夜夜嗨| 久久久99精品久久| 国产成人午夜电影网| 国产嫩草影院久久久久| www.日韩精品| 亚洲精品国产a| 欧美亚洲综合在线| 亚洲视频在线一区观看| av电影在线观看完整版一区二区| 久久精品亚洲一区二区三区浴池| 午夜精品久久久| 欧美日韩激情一区二区| 天天射综合影视| 精品日韩99亚洲| 国产成人h网站| 亚洲女与黑人做爰| 欧美一区二区三区男人的天堂| 亚洲电影欧美电影有声小说| 欧美日韩激情一区| 国产成人亚洲综合a∨猫咪| 国产精品视频线看| 精品视频1区2区3区| 蜜臀久久久99精品久久久久久| 欧美日韩视频在线第一区| 日韩中文字幕区一区有砖一区| 91精品国产全国免费观看| 国内精品在线播放| 国产精品美女久久久久久| 欧美日韩在线一区二区| 精品在线视频一区| 亚洲欧美国产毛片在线| 欧美一级黄色录像| 欧美性高清videossexo| 国产原创一区二区三区| 亚洲国产三级在线| 中文字幕 久热精品 视频在线| 欧美电影影音先锋| 97久久超碰精品国产| 国产精一区二区三区| 亚洲国产精品一区二区久久恐怖片| 亚洲精品一区二区三区蜜桃下载 | 久久99久久精品| 一区二区三区欧美日| 久久久蜜臀国产一区二区| 欧美狂野另类xxxxoooo| 成人av在线电影| 国产一区在线视频| 免费av成人在线| 性做久久久久久免费观看欧美| 国产精品福利一区| 国产精品久久久久久久久免费丝袜 | 99re视频这里只有精品| 精品一二三四在线| 国产美女主播视频一区| 麻豆成人免费电影| 精品一区二区国语对白| 久热成人在线视频| 精品一区二区免费在线观看| 麻豆91精品91久久久的内涵| 看片的网站亚洲| 蜜臀91精品一区二区三区| 美女视频黄 久久| 国产麻豆午夜三级精品| 99re热视频精品| 在线中文字幕一区| 欧美精品在线视频| 精品免费国产二区三区| 中文字幕乱码一区二区免费| 国产精品久久久久久户外露出| 亚洲天堂中文字幕| 偷拍一区二区三区| 国产99精品在线观看| 在线观看欧美日本| 久久综合九色综合欧美98 | 91在线视频在线| 欧美日本在线播放| 欧美国产欧美亚州国产日韩mv天天看完整 | 亚洲.国产.中文慕字在线| 免费成人性网站| 色婷婷一区二区| 精品国产一二三区| 午夜久久久久久电影| 成人一级黄色片| 欧美va亚洲va在线观看蝴蝶网| 中文一区二区在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 成人激情小说乱人伦| 久久久精品中文字幕麻豆发布|