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

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

?? dataset.java

?? 搞算法預測的可以來看。有移動平均法
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
////  OpenForecast - open source, general-purpose forecasting package.//  Copyright (C) 2002-2003  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;import java.util.ArrayList;import java.util.Collection;import java.util.Collections;import java.util.Comparator;import java.util.Iterator;import java.util.SortedMap;import java.util.TreeMap;/** * Represents a collection of data points. Data points are either observations * of past data (including both the values of the independent variables and the * observed value of the dependent variable), or forecasts or estimates of the * dependent variable (for a given set of independent variable values). * * <p>Generally when trying to forecast future values you'll use two data sets. * The first data set contains all of the observations, or historical data. * This data set is used to help initialize the selected forecasting model, * the details of which depend on the specific forecasting model. A second * data set is then created and initialized with data points describing the * values of the independent variables that are to be used to predict or * forecast values of the dependent variable. * * <p>When defining any data set it is important to provide as much information * as possible about the data. While on the surface it may seem trivial, the * more information you can provide about a data set (such as whether it is a * time-based series, the name of the independent variable representing time, * the number of data points/periods in a year), the better the forecasting * model will be able to model the data. This is because some models need this * type of data to even be applicable. * @author Steven R. Gould */public class DataSet implements Collection{    /**     * Maintains the list of data points in this data set.     */    private Collection dataPoints = new ArrayList();        /**     * If this data set is a time-based series, then for best results the     * timeVariable should be initialized to contain the name of the time     * variable. If set to null, the data set is treated as being non     * time-based.     */    private String timeVariable;        /**     * For time-series data, periodsPerYear should be initialized to the     * number of periods - or data points - in a years worth of data.     */    private int periodsPerYear;        /**     * Constructs a new empty data set.     */    public DataSet()    {        timeVariable = null;        periodsPerYear = 0;    }        /**     * Copy constructor: constructs a new data set object by copying the given     * data set.     * @param dataSet the data set to copy from to initialize the new data set.     */    public DataSet( DataSet dataSet )    {        this( dataSet.getTimeVariable(),              dataSet.getPeriodsPerYear(),              dataSet.dataPoints );    }        /**     * Constructs a new time-based data set with the named time variable, the     * given number of data points in a year, and the given Collection of data     * points. This is equivalent to using the default constructor, then     * calling setTimeVariable, setPeriodsPerYear and addAll to initialize it.     * @param timeVariable the name of the independent variable representing     *        time.     * @param periodsPerYear the number of periods - data points - in one years     *        worth of data.     * @param c a Collection of data points to initialize this data set with.     * @see #setTimeVariable     * @see #setPeriodsPerYear     * @see #addAll     */    public DataSet( String timeVariable, int periodsPerYear, Collection c )    {        this.timeVariable = timeVariable;        this.periodsPerYear = periodsPerYear;                addAll( c );    }        /**     * Adds the given data point object to this data set.     * @param obj the data point object to add to this set.     * @return true if this collection changed as a result of the call. This is     * consistent with the add method in the java.util.Collection class.	  * @throws ClassCastException if the specified object does not implement	  * the DataPoint interface.	  * @throws NullPointerException if the specified collection contains	  * one or more null elements.     */    public boolean add( Object obj )    {		  if ( obj == null )				throw new NullPointerException("DataSet does not support addition of null DataPoints");        return dataPoints.add( new Observation( (DataPoint)obj ) );    }        /**     * Adds a collection of data points to this data set. All elements of the     * collection must be DataPoints.     * @param c a collection of data points to add to this data set.     * @return true if this collection changed as a result of the call. This is     * consistent with the add method in the java.util.Collection class.     */    public boolean addAll( Collection c )    {        // iterate through all elements in Collection        //  adding a copy of each DataPoint to this DataSet        Iterator it = c.iterator();        while ( it.hasNext() )            add( (DataPoint)(it.next()) );                return true;    }        /**     * Removes all of the data points from this data set. This data set will     * be empty after this method returns unless it throws an exception.     */    public void clear()    {        dataPoints.clear();    }        /**     * Returns true if this data set contains no data points. Otherwise returns     * false.     * @return true if this data set is empty.     */    public boolean isEmpty()    {        return dataPoints.isEmpty();    }        /**     * Returns true if this data set contains the given data point object; or	  * false otherwise. This data set is said to contain the given data point	  * iff <code>dataPoint.equals(dp)</code> returns true for some DataPoint     * object, <code>dp</code>, within the set of data points.     * @param obj the data point object to search for in this data set.     * @return true if this data set contains dataPoint.	  * @throws ClassCastException if the specified object does not implement	  * the DataPoint interface.	  * @throws NullPointerException if the specified collection contains	  * one or more null elements.     */    public boolean contains( Object obj )    {		  if ( obj == null )				throw new NullPointerException("DataSet does not support null DataPoint objects");        		  DataPoint dataPoint = (DataPoint)obj;        Iterator it = this.iterator();        while ( it.hasNext() )            {                DataPoint dp = (DataPoint)it.next();                if ( dataPoint.equals(dp) )                    return true;            }                return false;    }    	 /**	  * Returns true if this DataSet contains all of the DataPoints in the	  * specified collection.	  * @param c collection to be checked for containment in this collection.	  * @return true if this DataSet contains all of the DataPoints in the	  * specified collection.	  * @throws ClassCastException if the types of one or more elements in	  * the specified collection do not implement the DataPoint interface.	  * @throws NullPointerException if the specified collection contains	  * one or more null elements.	  */	 public boolean containsAll( Collection c )		  throws ClassCastException, NullPointerException	 {        Iterator it = c.iterator();        while ( it.hasNext() )            {                DataPoint dp = (DataPoint)it.next();                if ( !this.contains(dp) )                    return false;            }                return true;	 }           /**     * Removes a single instance of the specified data point object from this	  * data set, if it is present. Returns true if this collection contained	  * the specified element (or equivalently, if this collection changed as	  * a result of the call).      * @param obj the data point object to remove from this data set.     * @return true if this collection changed as a result of the call. This     * is consistent with the add method in the java.util.Collection class.	  * @throws ClassCastException if the specified object does not implement	  * the DataPoint interface.	  * @throws NullPointerException if the specified collection contains	  * one or more null elements.     */    public boolean remove( Object obj )    {		  if ( obj == null )				throw new NullPointerException("DataSet does not support null DataPoint objects");        return dataPoints.remove( (DataPoint)obj );    }        /**     * Returns the number of data points in this data set. If this data     * contains more than Integer.MAX_VALUE elements, returns     * Integer.MAX_VALUE.     * @return the number of data points in this data set.     */    public int size()    {        return dataPoints.size();    }        /**     * Returns an iterator over the data points in this data set. There are     * no guarantees concerning the order in which the elements are returned.     * @return an iterator over the points in this data set.     */    public Iterator iterator()    {        return dataPoints.iterator();    }        /**     * Sorts the given data set according to increasing value of the named     * independent variable. The initial implementation of this sort method     * appears a little cumbersome - it may be more efficient later to     * implement a small quicksort routine here instead.     * @param independentVariable the name of the independent variable to     *        set by. The resulting data set will be sorted in increasing     *        value of this variable.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日日摸夜夜添夜夜添亚洲女人| 精品国一区二区三区| 精品女同一区二区| 一区二区三区四区在线播放 | 亚洲成在人线在线播放| 777a∨成人精品桃花网| 亚洲精品国产一区二区三区四区在线| 国产三级一区二区| 丝袜亚洲另类欧美| heyzo一本久久综合| 色一情一伦一子一伦一区| 久久久精品天堂| 婷婷综合久久一区二区三区| 国产.欧美.日韩| 日韩欧美国产一区在线观看| 亚洲三级电影网站| 国产盗摄一区二区| 精品少妇一区二区三区视频免付费 | 亚洲国产欧美在线| 成年人午夜久久久| 久久精品视频网| 久久99热99| 欧美久久一二三四区| 亚洲一二三区在线观看| 91色九色蝌蚪| 国产精品免费网站在线观看| 国产精品一区二区免费不卡| 日韩精品中文字幕一区| 日韩av一区二| 欧美日韩国产高清一区| 亚洲自拍偷拍图区| 色综合久久天天| 亚洲视频一区二区在线观看| 成人在线综合网站| 国产欧美日韩激情| 成人免费的视频| 国产精品理论片| 9人人澡人人爽人人精品| 国产欧美日韩在线看| 国产成人午夜电影网| 国产欧美日韩三级| 成人性生交大片免费看视频在线| 国产色产综合色产在线视频| 国产在线观看免费一区| 久久女同性恋中文字幕| 国内精品写真在线观看| 26uuu另类欧美亚洲曰本| 国内成人免费视频| 久久久久9999亚洲精品| 国产成人福利片| 日本一区二区免费在线| 狠狠v欧美v日韩v亚洲ⅴ| 欧美午夜精品一区二区三区| 一区二区免费在线| 欧美裸体一区二区三区| 日韩专区一卡二卡| 日韩欧美一区电影| 国产麻豆视频精品| 中文字幕色av一区二区三区| 色悠悠久久综合| 午夜伦欧美伦电影理论片| 精品一区二区三区在线播放| 午夜精品久久久久久久99水蜜桃| 日韩欧美国产一区二区在线播放| 国产精品自在欧美一区| 久久亚洲欧美国产精品乐播| 国产精品99久久久久久久女警| 国产欧美一区二区精品秋霞影院| 成人免费高清视频| 伊人婷婷欧美激情| 在线综合+亚洲+欧美中文字幕| 免费成人在线影院| 国产人久久人人人人爽| 91丨九色丨黑人外教| 香蕉影视欧美成人| ww亚洲ww在线观看国产| 成人av高清在线| 亚洲麻豆国产自偷在线| 欧美乱妇15p| 蜜臀av性久久久久av蜜臀妖精| 26uuu成人网一区二区三区| av在线这里只有精品| 久久99日本精品| 午夜视频久久久久久| 99视频有精品| 婷婷综合久久一区二区三区| 欧美大尺度电影在线| 成人激情图片网| 亚洲国产欧美另类丝袜| 日韩一区二区三区免费看| 亚洲成人久久影院| 久久亚洲捆绑美女| 在线观看视频91| 韩国精品一区二区| 亚洲码国产岛国毛片在线| 日韩一区二区三区电影在线观看| 成人国产免费视频| 日产国产欧美视频一区精品| 欧美极品美女视频| 91精品国产综合久久久久久漫画 | 国产欧美日韩精品a在线观看| 色综合中文字幕国产| 亚洲五码中文字幕| 国产午夜精品一区二区| 欧美午夜一区二区三区| 国产福利一区二区三区视频| 一区二区三区 在线观看视频| 久久亚洲精品小早川怜子| 欧美在线观看18| 国产成人一区在线| 日韩成人伦理电影在线观看| 亚洲色大成网站www久久九九| 精品区一区二区| 欧美日韩综合在线| 成人污污视频在线观看| 日本伊人色综合网| 亚洲精品视频一区| 久久久久久久久免费| 欧美日韩国产乱码电影| 不卡视频在线看| 精品一区二区三区免费观看| 婷婷久久综合九色综合伊人色| 国产精品大尺度| 久久免费精品国产久精品久久久久 | 91在线视频网址| 欧美日韩免费视频| 成人视屏免费看| 美女mm1313爽爽久久久蜜臀| 亚洲线精品一区二区三区八戒| 国产精品拍天天在线| 26uuu精品一区二区| 5月丁香婷婷综合| 欧美特级限制片免费在线观看| eeuss鲁片一区二区三区| 国产美女在线观看一区| 蜜桃一区二区三区在线| 日韩中文字幕1| 午夜精品久久久久久久99樱桃| 亚洲精品中文字幕在线观看| 国产精品污www在线观看| 26uuu国产在线精品一区二区| 日韩一区国产二区欧美三区| 欧美美女黄视频| 欧美日本一区二区| 欧美视频一区二区三区在线观看| 色婷婷国产精品| 91在线国产观看| av亚洲产国偷v产偷v自拍| 国产成人精品一区二| 激情深爱一区二区| 精品夜夜嗨av一区二区三区| 免费看日韩精品| 青青国产91久久久久久| 天天av天天翘天天综合网 | 亚洲国产精品成人综合| 日本一区二区综合亚洲| 国产欧美日韩在线| 日本一区二区三区电影| 国产精品区一区二区三区| 日本一区二区在线不卡| 中文字幕欧美激情一区| 亚洲国产精品国自产拍av| 国产精品久久久久久久岛一牛影视| 国产日韩精品一区二区浪潮av| 久久精品一区八戒影视| 国产清纯在线一区二区www| 久久久www成人免费无遮挡大片 | 色综合天天综合在线视频| 91在线porny国产在线看| 色一情一伦一子一伦一区| 欧美性感一类影片在线播放| 成人三级伦理片| 粉嫩高潮美女一区二区三区 | 欧美bbbbb| 国模娜娜一区二区三区| 国产丶欧美丶日本不卡视频| 成人av在线影院| 在线亚洲精品福利网址导航| 精品视频全国免费看| 日韩一级完整毛片| 国产亚洲欧美日韩在线一区| 国产精品成人在线观看| 一区二区三区国产豹纹内裤在线| 亚洲国产精品麻豆| 美国十次了思思久久精品导航| 国产乱一区二区| 99久久综合国产精品| 欧美性极品少妇| 欧美电影免费观看完整版| 久久久久久久久久久电影| 1024亚洲合集| 午夜免费久久看| 国产精品一区二区果冻传媒| av高清不卡在线| 欧美日本高清视频在线观看| 精品久久久久av影院| 中文字幕日韩一区二区| 婷婷综合久久一区二区三区| 国产精品一级在线| 欧美亚洲国产一卡|