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

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

?? resultsetbuilder.java

?? 搞算法預測的可以來看。有移動平均法
?? JAVA
字號:
////  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.input;import java.sql.ResultSet;import java.sql.ResultSetMetaData;import java.sql.SQLException;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 ResultSet. * This class makes for a quick and easy "import" of data from a JDBC data * source such as an Oracle database. * * <p><strong>WARNING: This class has not been tested. It has been made * available as a starting point for anyone interested in implementing this * kind of Builder. It <em>should</em> work fine but, like I said, has not * been tested.</strong> If you use this class and fine it works, as is, let * me know (and perhaps I can remove this message). Alternatively, if you * find any changes are necessary, please submit them for inclusion in the * project. * * <p>Each record in the result set is assumed to define one data point. The * last value on each row is assumed to represent the dependent variable. For * example, if the independent variables are represented by x1, x2, x3 and so * on, and the dependent variable is represented by y, then a row should be * of the form: * * <pre> *  x1, x2, ..., xi, y * </pre> * * <p>For example, the following represents data points (1,3), (2,5), (3,6), * and (4,7): * * <pre> *  1, 3 *  2, 5 *  3, 6 *  4, 7 * </pre> * * <p>where the values 3, 5, 6 and 7 are the observed values of the dependent * variable corresponding to the associated values of the independent variables * with the values 1, 2, 3, and 4 respectively. The independent variables will * be given the column names as defined by the query. * * <p>For example, consider the following query: * * <pre> *  SELECT period, sales_revenue FROM sales_summary * </pre> * * This would create a series of data points with the single independent * variable, <code>period</code>. The <code>sales_revenue</code> column is * assumed to represent the dependent variable (for which we don't currently * use the name). * @author Steven R. Gould * @since 0.4 */public class ResultSetBuilder extends AbstractBuilder{	 /**	  * Stores the result set from which this builder is to read its data.	  */	 private ResultSet rs;	 	 /**	  * Constructs a new ResultSetBuilder that reads its input from the given	  * ResultSet. The fields will be named according to the column labels	  * defined by the ResultSet's meta data.	  * @param resultSet the ResultSet containing data to be used to build the	  * DataSet.	  */	 public ResultSetBuilder( ResultSet resultSet )	 {		  this.rs = resultSet;	 }	 	 /**	  * Retrieves a DataSet - a collection of DataPoints - from the current	  * input source. The DataSet should contain all DataPoints defined by	  * the input source.	  *	  * <p>In general, build will attempt to convert all rows in the ResultSet	  * to data points. In this implementation, all columns are assumed to	  * contain numeric data. This restriction may be relaxed at a later date.	  * @return a DataSet built from the current input source.	  * @throws SQLException if a database access error occurs.	  */	 public DataSet build()		  throws SQLException	 {		  DataSet dataSet = new DataSet();		  		  setColumnNames();		  		  // Make sure we're on the first record		  if ( !rs.isBeforeFirst() )				rs.beforeFirst();		  		  // Iterate through ResultSet,		  //  creating new DataPoint instance for each row		  while ( rs.next() )				{					 DataPoint dp = build( rs );					 dataSet.add( dp );				}		  		  return dataSet;	 }	 	 /**	  * Builds a DataPoint from the given row in the ResultSet. Assumes the	  * ResultSet has been positioned on the required row. This method does not	  * change the ResultSet, or the cursor within the ResultSet. The row is	  * expected/assumed to be made up of numeric fields only.	  * @param rs the ResultSet from which a row is to be read and used to	  * construct a new DataPoint.	  * @return a DataPoint object with values as specified by the current row	  * in the given ResultSet.	  * @throws SQLException if a database access error occurs.	  */	 private DataPoint build( ResultSet rs )		  throws SQLException	 {		  Observation dataPoint = new Observation( 0.0 );		  		  int n = getNumberOfVariables();		  for ( int column=0; column<n; column++ )				{					 // Treat all columns as numeric data					 double value = rs.getDouble( column );					 					 // If this is the last value on the line, treat it					 //  as the dependent variable value					 if ( column == n )						  dataPoint.setDependentValue( value );					 else						  dataPoint.setIndependentValue( getVariableName(column),																	value );				}		  		  return dataPoint;	 }	 	 /**	  * Reads the column names from the meta data associated with the current	  * ResultSet, and initializes this object using those names.	  * @throws SQLException if a database access error occurs.	  */	 private void setColumnNames()		  throws SQLException	 {		  ResultSetMetaData metaData = rs.getMetaData();		  		  // Store names of independent variables. Last column is assumed		  //  to be the dependent variable value (we don't actually use that)		  int n = metaData.getColumnCount()-1;		  for ( int column=0; column<n; column++ )				setVariableName( column, metaData.getColumnLabel(column) );	 }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产剧情一区二区三区| 国产精品99久久久久久似苏梦涵| 国产精品2024| 国产丝袜在线精品| av一区二区不卡| 日韩久久一区二区| 欧美人与禽zozo性伦| 首页亚洲欧美制服丝腿| 日韩欧美二区三区| 国产精品一区三区| 日韩美女久久久| 欧美精品自拍偷拍| 国内精品视频666| 成人欧美一区二区三区1314| 91久久香蕉国产日韩欧美9色| 亚洲午夜精品一区二区三区他趣| 5566中文字幕一区二区电影| 韩国v欧美v日本v亚洲v| 国产精品久久看| 欧美人妇做爰xxxⅹ性高电影 | 国产欧美日韩在线| 99久久久久免费精品国产| 亚洲成av人在线观看| 精品日韩一区二区三区| 亚洲成人av一区二区三区| 国产精品中文欧美| 精品视频一区二区三区免费| 欧美一区二区三区啪啪| 亚洲婷婷国产精品电影人久久| 日本不卡123| 在线免费精品视频| 国产精品福利一区| 国产99久久久国产精品潘金| 欧美高清激情brazzers| 日韩激情一区二区| 久久蜜桃香蕉精品一区二区三区| 成人午夜电影网站| 日韩电影在线观看一区| 国产精品久久午夜| 日韩色视频在线观看| 91亚洲永久精品| 久久精品国产77777蜜臀| |精品福利一区二区三区| 日韩视频中午一区| 欧美视频一区在线| 成人av电影在线播放| 精品午夜一区二区三区在线观看| 尤物在线观看一区| 国产精品污网站| 精品日韩在线一区| 欧美一区二区精品久久911| 色诱视频网站一区| 成人毛片在线观看| 国产成人精品三级麻豆| 另类小说欧美激情| 视频在线观看国产精品| 夜夜揉揉日日人人青青一国产精品| 久久久综合网站| 日韩精品专区在线影院重磅| 欧美影院一区二区三区| 色综合天天综合狠狠| 成人精品免费视频| 国产91丝袜在线播放九色| 精品一区二区三区香蕉蜜桃| 日日夜夜精品免费视频| 亚洲国产精品影院| 亚欧色一区w666天堂| 一区二区三区国产精品| 亚洲色大成网站www久久九九| 亚洲国产精品黑人久久久| 久久一日本道色综合| 精品理论电影在线| 日韩精品一区二区三区视频 | 亚洲欧美日韩小说| 国产精品入口麻豆原神| 欧美日韩国产电影| 91免费看片在线观看| 日韩综合一区二区| 亚洲欧美日韩中文字幕一区二区三区| 欧美日韩亚州综合| 国产高清不卡一区| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产欧美一区二区三区在线老狼| 3d成人h动漫网站入口| 在线免费观看日本欧美| 性做久久久久久免费观看欧美| 亚洲激情在线播放| 亚洲在线中文字幕| 亚洲自拍与偷拍| 日韩黄色免费电影| 久久99精品国产.久久久久久 | 国产成人综合在线观看| 国产一区二区三区最好精华液| 久久99久国产精品黄毛片色诱| 狠狠狠色丁香婷婷综合激情| 国产精品一级在线| 色综合久久中文字幕综合网| 一本色道a无线码一区v| 欧美日韩大陆一区二区| 欧美成人综合网站| 国产精品理伦片| 亚洲成人综合在线| 国产一区二区三区不卡在线观看 | 成人精品免费视频| 欧美专区在线观看一区| 日韩视频国产视频| 中文字幕av一区二区三区高| 一区二区三区中文免费| 另类小说图片综合网| 成人激情校园春色| 欧美军同video69gay| 精品国产免费一区二区三区四区| 国产欧美视频一区二区三区| 亚洲国产毛片aaaaa无费看| 国内精品伊人久久久久av影院 | 国产精品不卡在线| 亚洲国产精品一区二区久久 | 丁香天五香天堂综合| 色94色欧美sute亚洲线路一ni| 8x福利精品第一导航| 国产三级精品在线| 五月天激情综合| 成人激情免费视频| 欧美一区二区三区影视| 欧美精品一卡二卡| 精品欧美一区二区久久| 午夜精品久久久久久久久| 国产激情一区二区三区四区 | 亚洲女与黑人做爰| 日韩成人精品在线观看| 成人国产在线观看| 国产欧美综合在线| 日韩三级视频在线看| 最近日韩中文字幕| 狠狠色狠狠色综合系列| 欧美日韩一区视频| 国产精品久久久久桃色tv| 麻豆极品一区二区三区| 欧美中文字幕不卡| 国产精品第13页| 国产一区福利在线| 日韩丝袜美女视频| 午夜私人影院久久久久| 91麻豆免费观看| 国产精品三级电影| 国产成人在线网站| 精品国产免费一区二区三区香蕉| 亚洲成人资源网| 在线观看成人小视频| 国产精品三级av在线播放| 国产高清一区日本| 亚洲精品在线网站| 精品一区中文字幕| 欧美成人国产一区二区| 日韩电影免费在线| 欧美三级在线视频| 亚洲午夜免费视频| 欧美一a一片一级一片| 亚洲欧美一区二区三区极速播放| 成人污污视频在线观看| 国产日韩欧美精品在线| 国产一区二区美女诱惑| 精品乱人伦小说| 精品一区二区三区在线视频| 精品国产欧美一区二区| 国产精品亚洲一区二区三区在线 | 美女一区二区视频| 欧美猛男gaygay网站| 亚洲激情自拍偷拍| 欧美在线观看18| 亚洲国产一区二区三区| 在线不卡a资源高清| 日韩av一级片| 日韩视频在线观看一区二区| 韩日欧美一区二区三区| 国产日韩欧美麻豆| 91丨porny丨最新| 亚洲午夜精品网| 日韩你懂的在线观看| 黄一区二区三区| 国产免费成人在线视频| 欧美艳星brazzers| 国产成人免费9x9x人网站视频| 精东粉嫩av免费一区二区三区| 天天综合天天综合色| 久久精品一级爱片| 在线成人小视频| 91国偷自产一区二区三区成为亚洲经典 | 中文字幕永久在线不卡| 国产精品女人毛片| 91在线你懂得| 亚洲一区二区三区四区的| 欧美精品v日韩精品v韩国精品v| 麻豆精品久久精品色综合| 国产亚洲短视频| 日本韩国视频一区二区| 日韩av一区二区在线影视| 国产日韩欧美一区二区三区乱码| 91免费精品国自产拍在线不卡| 日韩中文字幕91|