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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? observation.java

?? 搞算法預(yù)測(cè)的可以來看。有移動(dòng)平均法
?? JAVA
字號(hào):
////  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.Enumeration;import java.util.Hashtable;/** * Represents a single observation or data point, consisting of one value * of a dependent variable, and one or more values of independent variables. * Note that an Observation can refer to a previously observed data value, * or a future forecast value (an expected Observation). * @author Steven R. Gould * @since 0.3 */public class Observation implements DataPoint{	/**	 * Stores the dependent value for this observation.	 */	private double dependentValue;	/**	 * A collection of name-value pairs representing the independent variables	 * associated with the current dependentValue. In each name-value pair, the	 * name is a string representation of the name of the independent variable,	 * and the value is its value corresponding to the current value of the	 * dependent variable.	 */	private Hashtable independentValues;	/**	 * Initializes the current Observation with the given value of the	 * dependent variable. Note that this is provided as somewhat of a	 * convenience - it will be necessary to call setIndependentValue for	 * each independent variable name and value associated with this data	 * point	 * @param dependentValue the initial value of the dependent variable.	 */	public Observation( double dependentValue )	{		this.dependentValue = dependentValue;		independentValues = new Hashtable();	}	/**	 * Like a copy constructor, but constructs a new Observation object by	 * making a copy of the values from the given data point.	 * @param dataPoint the data point that is to be copied.	 */	public Observation( DataPoint dataPoint )	{		this.dependentValue = dataPoint.getDependentValue();		String[] varNames = dataPoint.getIndependentVariableNames();		int numberOfVars = varNames.length;		this.independentValues = new Hashtable( numberOfVars );		for ( int dp=0; dp<numberOfVars; dp ++ )			 independentValues.put( varNames[dp],				  new Double(dataPoint.getIndependentValue(varNames[dp])));	}	/**	 * Sets the dependent variables' value to the given value.	 * @param value the new value for the dependent variable.	 */	public void setDependentValue( double value )	{		this.dependentValue = value;	}	/**	 * Returns the current value assigned to the dependent variable. This value	 * can be changed by calling setDependentValue.	 * @return the current value of the dependent variable.	 */	public double getDependentValue()	{		return dependentValue;	}	/**	 * Sets the named independent variables' value to the given value. Each	 * Observation can have one or more name-value pairs that represent the	 * independent variables and their associated values.	 * @param value the new value for the dependent variable.	 */	public void setIndependentValue( String name, double value )	{		independentValues.put( name, new Double(value) );	}	/**	 * Returns the current value assigned to the named independent variable.	 * This value can be changed by calling setIndependentValue.	 * @param name the name of the independent variable required.	 * @return the current value of the named independent variable.	 */	public double getIndependentValue( String name )	{		Double value = (Double)independentValues.get( name );		if ( null == value )			throw new				IllegalArgumentException("The independent variable "+name				  + " is not defined for the current Observation. The current Observation is as follows: "				  +toString());		return value.doubleValue();	}	/**	 * Returns an array of all independent variable names. No checks are made	 * to ensure that the names are unique. Rather, the names are extracted	 * directly from the names used in defining and initializing the	 * Observation.	 * @return an array of independent variable names for this Observation.	 */	public String[] getIndependentVariableNames()	{		String varNames[] = new String[independentValues.size()];		Enumeration keys = independentValues.keys();		for ( int index=0; keys.hasMoreElements(); index++ )			varNames[index] = (String)keys.nextElement();				return varNames;	}	/**	 * Compares the given DataPoint to the current DataPoint/Observation,	 * and returns true if, and only if, the two data points represent the	 * same data point. That is, the dependent value matches and all the	 * independent values match.	 * @param dp the DataPoint to compare this DataPoint/Observation object	 *        to.	 * @return true if the given DataPoint represents the same data point	 *         as this DataPoint/Observation object.	 */	public boolean equals( DataPoint dp )	{		if ( dependentValue != dp.getDependentValue() )			return false;		// Get a list of independent variable names		String[] vars = getIndependentVariableNames();		// Check that the given DataPoint has the same number of variables		String[] dpVars = getIndependentVariableNames();		if ( vars.length != dpVars.length )			 return false;		// Check the values of each variable match		for ( int v=0; v<vars.length; v++ )			 {				  double thisValue = ((Number)independentValues.get(vars[v])).doubleValue();				  double dpValue = dp.getIndependentValue( vars[v] );				  if ( thisValue != dpValue )						return false;			 }		// All variable values match, so the given DataPoint represents the		// same data point as this Observation		return true;	}	/**	 * Overrides the default toString method to provide a more meaningful	 * output of an Observation. Each independent variable is listed with its	 * value, then the dependent variable and its value are listed.	 * @return a string representation of this Observation.	 */	public String toString()	{		String result = "(";		Enumeration e = independentValues.keys();		while ( e.hasMoreElements() )			{				Object obj = e.nextElement();				String key = obj.toString();				String value = independentValues.get(obj).toString();				result += key + "=" + value + ",";			}		return result + "dependentValue=" + dependentValue + ")";	}}/* * Local Variables: * tab-width: 3 * End: */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久se精品一区二区| 懂色av中文一区二区三区| 精品国产三级a在线观看| 九一久久久久久| 午夜精品久久久久久久99水蜜桃 | 亚洲成av人片观看| 亚洲欧美韩国综合色| 丁香网亚洲国际| 国产欧美一区二区在线观看| 国产一区二区三区电影在线观看| 91视频精品在这里| 久久理论电影网| 日韩国产高清影视| 美女mm1313爽爽久久久蜜臀| 91在线播放网址| 欧美国产日韩亚洲一区| 青青草伊人久久| 精品国精品国产| 成人99免费视频| 日韩电影免费在线看| 国产精品美女久久久久aⅴ国产馆| 粉嫩蜜臀av国产精品网站| 亚洲精选视频在线| 日韩精品在线一区| 色婷婷综合久久久中文字幕| 青青草91视频| 亚洲精品美腿丝袜| 日韩欧美二区三区| 精品视频资源站| 成人午夜精品在线| 蜜桃传媒麻豆第一区在线观看| 国产精品护士白丝一区av| 日韩一级片网址| 欧美日韩免费在线视频| 福利一区二区在线| 久久精品理论片| 亚洲男同1069视频| 国产精品不卡在线| 精品国产sm最大网站免费看| 欧美视频精品在线| 国产精品一区三区| 精品一区二区三区久久久| 欧美激情一区在线观看| 久久久一区二区三区| 欧美日韩性生活| 欧美精品 日韩| 欧美一级精品大片| 久久综合久久综合久久| 久久影院午夜论| 久久亚洲综合色| 亚洲视频资源在线| 亚洲一区二区黄色| 亚洲成a人片综合在线| 亚洲成a人v欧美综合天堂下载| 亚洲影院久久精品| 极品瑜伽女神91| 91一区在线观看| 欧美丰满少妇xxxxx高潮对白| 日韩三级电影网址| 中文字幕二三区不卡| 亚洲国产精品一区二区www在线| 亚洲第一会所有码转帖| 99久久免费视频.com| 欧美日韩成人激情| 国产调教视频一区| 亚洲国产欧美在线| 国产成人综合自拍| 777欧美精品| 亚洲免费三区一区二区| 国产成人亚洲综合a∨猫咪| 日本韩国一区二区三区视频| 久久久精品免费观看| 三级在线观看一区二区| 色婷婷国产精品| 国产精品美女一区二区| 国精品**一区二区三区在线蜜桃| 欧美日韩国产三级| 国产精品色哟哟网站| 国产白丝精品91爽爽久久| 制服.丝袜.亚洲.中文.综合| 亚洲国产精品99久久久久久久久| 蜜臀av国产精品久久久久| 欧美亚洲综合在线| 性做久久久久久免费观看欧美| 91网站在线播放| 亚洲国产成人在线| 国产精品69毛片高清亚洲| 久久综合久久综合久久| 视频一区在线视频| 日韩一区二区三区在线| 麻豆国产精品一区二区三区| 欧美精品高清视频| 午夜激情久久久| 99精品视频在线免费观看| 亚洲色图视频网| 一本色道a无线码一区v| 久久99精品国产麻豆婷婷| 97se亚洲国产综合在线| 色综合中文字幕| 在线精品观看国产| 中文字幕一区二区三区乱码在线 | 久久久天堂av| 国产欧美精品一区| 成人性生交大合| 亚洲综合网站在线观看| 欧美精品三级在线观看| 日韩中文字幕不卡| 久久精品无码一区二区三区| 国产一区二区三区在线观看免费 | 91网站最新地址| 国产精品入口麻豆九色| 91成人在线观看喷潮| 亚洲第一搞黄网站| 国产精品视频免费| 日韩欧美一区电影| 在线观看免费视频综合| 丰满少妇在线播放bd日韩电影| 午夜精品福利在线| 亚洲欧洲制服丝袜| 国产日韩欧美a| 在线播放欧美女士性生活| 国产精品99久久久久久有的能看| 五月天一区二区| 亚洲午夜一二三区视频| 亚洲欧美国产77777| 欧美日韩成人综合天天影院 | 精品视频1区2区| 99精品在线观看视频| www.欧美亚洲| av一区二区三区黑人| 成人h动漫精品一区二| 懂色一区二区三区免费观看| 夜夜爽夜夜爽精品视频| 久久久久99精品一区| 欧美精品一区二区三区视频| 久久久久久久综合狠狠综合| 久久久久久免费网| 欧美一区二区精美| 国产视频视频一区| 一区二区不卡在线播放| 狠狠色狠狠色综合| 91蜜桃在线免费视频| 欧美一区二区在线免费播放| 久久久www成人免费毛片麻豆| ...av二区三区久久精品| 日本不卡视频在线观看| 99re这里都是精品| 久久综合99re88久久爱| 亚洲一区二区欧美日韩| 成人动漫一区二区三区| 欧美日韩免费电影| 亚洲欧洲日韩av| 国产成人自拍网| 欧美xingq一区二区| 亚洲在线视频免费观看| 99精品国产99久久久久久白柏| 日韩色在线观看| 奇米色777欧美一区二区| 93久久精品日日躁夜夜躁欧美| 久久精品男人的天堂| 久久精品免费看| 日韩伦理av电影| 亚洲国产成人va在线观看天堂 | 精品午夜久久福利影院| 欧美一区二区视频在线观看2020| 亚洲午夜久久久久久久久电影院 | 国产精品国产三级国产| 成人午夜视频在线| 国产精品女上位| 色欧美88888久久久久久影院| 国产精品国产三级国产| 欧美色综合久久| 天堂午夜影视日韩欧美一区二区| 欧美日韩免费不卡视频一区二区三区| 亚洲高清不卡在线观看| 欧美喷潮久久久xxxxx| 亚洲成av人片在线| 久久久亚洲精华液精华液精华液| 国产综合色在线视频区| 亚洲一区二区三区国产| 精品国产亚洲一区二区三区在线观看| 国产伦精品一区二区三区免费| 久久久久久久综合日本| 精品视频一区 二区 三区| 精品夜夜嗨av一区二区三区| 亚洲欧美在线视频观看| 日韩欧美123| 欧美系列在线观看| 高清在线不卡av| 国内精品伊人久久久久av影院| 国产精品狼人久久影院观看方式| 欧美欧美欧美欧美首页| 一本大道久久a久久精品综合| 精品亚洲免费视频| 男男gaygay亚洲| 日日摸夜夜添夜夜添精品视频| 亚洲欧美日韩国产成人精品影院| 久久影音资源网| 久久久久久久久蜜桃| 久久精品日产第一区二区三区高清版|