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

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

?? miningmetadata.java

?? 數據挖掘。數據倉庫
?? JAVA
字號:
package org.scut.DataMining.Core;
import org.scut.DataMining.Core.MiningAttribute;

import java.util.ArrayList;
import java.util.Date;

public class MiningMetaData
{
	/** Name of the mining meta data */
	private String name;
	/** Attributes on mining */
	private ArrayList<MiningAttribute> attributes = new ArrayList<MiningAttribute>();
	/** Target attribute indice */
	private ArrayList<Integer> target = new ArrayList<Integer>();
	/** None target attribute indice */
	private ArrayList<Integer> input = new ArrayList<Integer>();
	/**
	 * Constucts a MiningMetaData object with no name
	 */
	public MiningMetaData()
	{
		this.name = "";
	}
	/**
	 * Constucts a MiningMetaData object by name
	 * @param name name of the MiningMetaData
	 */
	public MiningMetaData(String name)
	{
		this.name = name;
	}
	/**
	 * Gets the name of the meta data
	 * @return name of the meta data object
	 */
	public String getName()
	{
		return this.name;
	}
	/**
	 * Sets the name of the meta data object
	 * @param name name to be set to the meta data object
	 */
	public void setName(String name)
	{
		this.name = name;
	}
	/**
	 * Gets the count of the attributes in the metadata
	 * @return count value
	 */
	public int getAttributeCount()
	{
		return this.attributes.size();
	}
	/**
	 * Gets the count of the targets
	 * @return
	 */
	public int getTargetCount()
	{
		return this.target.size();
	}
	/**
	 * Gets the countof the non-targets
	 * @return
	 */
	public int getInputCount()
	{
		return this.input.size();
	}
	/**
	 * Gets the attribute at a specified position
	 * @param idx position
	 * @return MiningAttribute at the specified position
	 */
	public MiningAttribute getAttribute(int idx)
	{
		return this.attributes.get(idx); 
	}
	/**
	 * Gets the index of the target at a speicified position
	 * @param idx
	 * @return
	 */
	public int getTargetIndex(int idx)
	{
		return this.target.get(idx);
	}
	/**
	 * Gets the index of the input at a specified position
	 * @param idx
	 * @return
	 */
	public int getInputIndex(int idx)
	{
		return this.input.get(idx);
	}
	/**
	 * Sets an attribute at a specified position
	 * @param idx position to be set at
	 * @param attr attibute to be set
	 */
	public void setAttribute(int idx,MiningAttribute attr)
	{
		this.attributes.set(idx,attr);
	}
	/**
	 * Adds an Attribute to the MetaData
	 * @param attr MiningAttribute object
	 */
	public void addAttribute(MiningAttribute attr)
	{
		this.attributes.add(attr);
	}
	/**
	 * Adds an attribute to the meta data at specified position
	 * @param idx
	 * @param attr
	 */
	public void addAttribute(int idx,MiningAttribute attr)
	{
		this.attributes.add(idx,attr);
	}
	/**
	 * Adds a target indext to the target indice array list
	 * @param idx index of the target to be added
	 */
	public void addTarget(int idx)
	{
		if( idx<0 || idx>=this.attributes.size()) return;
		boolean valid = true;
		for(int theIdx : this.input)
		{
			if(theIdx == idx)
			{
				valid = false;
				break;
			}
		}
		for(int theIdx : this.target)
		{
			if(theIdx == idx)
			{
				valid = false;
				break;
			}
		}
		if(valid)
			this.target.add(idx);
	}
	/**
	 * Adds the input index
	 * @param idx
	 */
	public void addInput(int idx)
	{
		if( idx<0 || idx>=this.attributes.size()) return;
		boolean valid = true;
		for(int theIdx : this.input)
		{
			if(theIdx == idx)
			{
				valid = false;
				break;
			}
		}
		for(int theIdx : this.target)
		{
			if(theIdx == idx)
			{
				valid = false;
				break;
			}
		}
		if(valid)
			this.input.add(idx);
	}
	/**
	 * Adds a target index by name within the attribute list
	 * @param name name of the attribute to be added
	 */
	public void addTarget(String name)
	{
		for(int i=0;i<this.attributes.size();i++)
		{
			if(this.attributes.get(i).getName().equals(name)) 
			{
				this.addTarget(i);
				break; //: name unique, just break
			}
		}
	}
	/**
	 * Adds input by name
	 * @param name
	 */
	public void addInput(String name)
	{
		for(int i=0;i<this.attributes.size();i++)
		{
			if(this.attributes.get(i).getName().equals(name))
			{
				this.addInput(i);
				break; //: name unique, just break
			}
		}
	}
	/*********************************************************************/
	public static void main(String[] args)
	{
		long start = new Date().getTime();
		MiningMetaData md = new MiningMetaData("Hong");
		NumericAttribute ma1 = new NumericAttribute("NA1");
		NumericAttribute ma2 = new NumericAttribute("NA2");
		NumericAttribute ma3 = new NumericAttribute("NA3");
		md.addAttribute(ma1);
		md.addAttribute(ma2);
		md.addAttribute(ma3);
		md.addTarget("NA2");
		md.addTarget("NA1");
		//md.addTarget(1);
		//md.addTarget(0);
		System.out.println(md.getName());
		long end = new Date().getTime();
		System.out.println("Time eclipsed[s]: " + (end-start)/1000.0);
	}
	/*********************************************************************/
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类小说一区二区三区| 欧美午夜精品一区| 欧美色精品在线视频| 欧美tickling挠脚心丨vk| 亚洲视频你懂的| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 91精品视频网| 亚洲天堂免费看| 国产91精品在线观看| 欧美一区二区三区成人| 依依成人精品视频| 成人午夜私人影院| 国产免费成人在线视频| 国产中文一区二区三区| 欧美一区二区三区视频| 亚洲成人av资源| 色综合久久久久久久| 亚洲色图.com| 91年精品国产| 亚洲乱码国产乱码精品精的特点| 国产不卡免费视频| 国产欧美综合在线| 国产成人精品aa毛片| 久久精品视频一区二区| 黄色成人免费在线| 国产欧美精品一区二区三区四区| 国产麻豆精品在线观看| 26uuu色噜噜精品一区二区| 毛片一区二区三区| 精品女同一区二区| 国产丶欧美丶日本不卡视频| 国产日韩在线不卡| 成人福利视频在线| 亚洲免费观看高清完整版在线 | 亚洲在线观看免费视频| 91国偷自产一区二区开放时间| 亚洲精品福利视频网站| 欧美亚男人的天堂| 免费欧美在线视频| 精品成人在线观看| 成a人片亚洲日本久久| 亚洲视频精选在线| 欧美日韩午夜在线| 人禽交欧美网站| 久久精品日产第一区二区三区高清版 | 久久亚洲影视婷婷| 成人av中文字幕| 亚洲宅男天堂在线观看无病毒| 欧美日韩亚洲国产综合| 久久精品国产一区二区三| 国产欧美综合色| 日本韩国欧美一区二区三区| 日本中文在线一区| 久久久国际精品| 色爱区综合激月婷婷| 五月激情综合色| 国产日韩av一区| 欧美日韩亚洲另类| 国产91精品精华液一区二区三区 | 亚洲天堂2014| 91精品视频网| 不卡视频一二三四| 亚洲国产一区二区视频| 欧美成人性福生活免费看| 99久久综合国产精品| 天堂在线一区二区| 中文字幕一区日韩精品欧美| 欧美精品乱码久久久久久| 国产精品亚洲一区二区三区妖精| 一区二区高清视频在线观看| 日韩欧美精品在线视频| 日本韩国精品一区二区在线观看| 六月婷婷色综合| 一区二区三区美女| 国产亚洲成年网址在线观看| 欧美日韩日本视频| 91一区在线观看| 9i在线看片成人免费| 麻豆精品久久久| 一区二区三区免费网站| 国产精品人人做人人爽人人添| 91精品午夜视频| 欧美性猛交xxxx黑人交| 99久久国产综合精品麻豆| 精品一区二区三区久久久| 午夜视频在线观看一区| 亚洲免费色视频| 精品视频123区在线观看| 国产999精品久久久久久绿帽| 免费在线观看不卡| 午夜日韩在线观看| 亚洲精品高清视频在线观看| 国产日韩欧美麻豆| 337p日本欧洲亚洲大胆色噜噜| 欧美电影在哪看比较好| 欧美午夜精品久久久久久超碰| 成人免费观看视频| 国产成人精品综合在线观看 | 激情五月激情综合网| 午夜精品在线视频一区| 一区二区三区在线观看欧美| 国产精品嫩草99a| 国产亚洲欧美色| 国产欧美视频一区二区| 久久亚洲精品国产精品紫薇| 精品欧美一区二区久久| 精品国产一区二区三区不卡| 欧美一级高清片| 91精品国产色综合久久久蜜香臀| 欧美日韩国产成人在线91| 在线观看一区二区视频| 欧美亚洲动漫另类| 欧美日韩日本视频| 欧美一级黄色片| 欧美成人激情免费网| 久久尤物电影视频在线观看| 久久综合狠狠综合久久综合88| 国产视频视频一区| 国产精品对白交换视频 | 欧美精品123区| 欧美日韩在线播| 日韩天堂在线观看| 久久久久久久久免费| 亚洲欧美一区二区在线观看| 亚洲人快播电影网| 日韩综合小视频| 国模少妇一区二区三区| 成人午夜免费视频| 欧美制服丝袜第一页| 91精品视频网| 国产欧美一区二区精品性| 国产精品久久久久7777按摩| 亚洲国产成人精品视频| 久久国产精品区| av福利精品导航| 日本一区二区在线不卡| 亚洲欧美日韩国产综合| 日本亚洲欧美天堂免费| 国产精华液一区二区三区| 色婷婷综合久久久| 欧美大片在线观看一区二区| 欧美激情一区二区三区蜜桃视频| 一区二区三区av电影| 蜜臀精品一区二区三区在线观看| 成人一二三区视频| 欧美日韩黄色影视| 久久精品人人做人人爽人人| 亚洲综合区在线| 国产精品亚洲人在线观看| 在线视频国内一区二区| 欧美一级国产精品| 17c精品麻豆一区二区免费| 日韩国产精品久久久久久亚洲| 成人自拍视频在线| 7799精品视频| 国产精品不卡一区二区三区| 日韩高清一区二区| 91免费看视频| 久久久99精品免费观看| 婷婷丁香久久五月婷婷| a在线播放不卡| 久久这里只有精品视频网| 丝瓜av网站精品一区二区| 99久久伊人网影院| 欧美xxxxxxxxx| 午夜精品福利久久久| 成人av影视在线观看| 精品国产乱码久久久久久牛牛| 亚洲久本草在线中文字幕| 国产**成人网毛片九色| 日韩免费视频一区| 日韩专区中文字幕一区二区| 色哟哟一区二区| 中文字幕亚洲一区二区av在线 | 五月激情丁香一区二区三区| 99精品热视频| 国产日韩精品久久久| 九九国产精品视频| 日韩一区二区免费视频| 亚洲成人综合视频| 欧美亚洲动漫制服丝袜| 亚洲日本电影在线| 不卡的电影网站| 中文字幕第一区| 国产成a人亚洲精| 久久精品日韩一区二区三区| 精品制服美女丁香| 精品噜噜噜噜久久久久久久久试看| 午夜久久福利影院| 欧美片在线播放| 亚洲sss视频在线视频| 欧美日韩亚洲综合在线 | 精品国产乱子伦一区| 激情五月激情综合网| 精品久久久久一区| 国产一区二区影院| 国产精品网站一区| 91色.com| 亚洲国产成人精品视频| 欧美日韩国产影片|