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

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

?? assocrulemining.java

?? java platform java-growth algorithm
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    
    protected boolean notMemberOf(short number, short[] itemSet) {
        
	// Loop through itemSet
	
	for(int index=0;index<itemSet.length;index++) {
	    if (number < itemSet[index]) return(true);
	    if (number == itemSet[index]) return(false);
	    }
	
	// Got to the end of itemSet and found nothing, return true
	
	return(true);
	}

    /* -------------------------------------------------- */
    /*                                                    */
    /*                ITEM SET COMBINATIONS               */
    /*                                                    */
    /* -------------------------------------------------- */ 
    
    /* COMBINATIONS */
    
    /** Invokes <TT>combinations</TT> method to calculate all possible 
    combinations of a given item set. <P>
    For example given the item set [1,2,3] this will result in the
    combinations[[1],[2],[3],[1,2],[1,3],[2,3],[1,2,3]].
    @param inputSet the given item set.
    @return array of arrays representing all possible combinations (may be null
    if no combinations). */

    protected short[][] combinations(short[] inputSet) {
	if (inputSet == null) return(null);
	else {
	    short[][] outputSet = new short[getCombinations(inputSet)][];
	    combinations(inputSet,0,null,outputSet,0);
	    return(outputSet);
	    }
	}

    /** Recursively calculates all possible combinations of a given item
    set.
    @param inputSet the given item set.
    @param inputIndex the index within the input set marking current
    element under consideration (0 at start).
    @param sofar the part of a combination determined sofar during the
    recursion (null at start).
    @param outputSet the combinations collected so far, will hold all
    combinations when recursion ends.
    @param outputIndex the current location in the output set.
    @return revised output index. */

    private int combinations(short[] inputSet, int inputIndex,
    		short[] sofar, short[][] outputSet, int outputIndex) {
    	short[] tempSet;
	int index=inputIndex;

    	// Loop through input array

	while(index < inputSet.length) {
            tempSet = realloc1(sofar,inputSet[index]);
            outputSet[outputIndex] = tempSet;
	    outputIndex = combinations(inputSet,index+1,
	    		copyItemSet(tempSet),outputSet,outputIndex+1);
    	    index++;
	    }

    	// Return

    	return(outputIndex);
    	}   

    /* GET COMBINATTIONS */
    
    /** Gets the number of possible combinations of a given item set.
    @param set the given item set.
    @return number of possible combinations. */
    
    private int getCombinations(short[] set) {
    	int counter=0, numComb;	

	numComb = (int) Math.pow(2.0,set.length)-1;
	    
    	// Return

        return(numComb);
        }

    /* ---------------------------------------------------------------- */
    /*                                                                  */
    /*                            MISCELANEOUS                          */
    /*                                                                  */
    /* ---------------------------------------------------------------- */
    
    /* COPY ITEM SET */
    
    /** Makes a copy of a given itemSet. 
    @param itemSet the given item set.
    @return copy of given item set. */
    
    protected short[] copyItemSet(short[] itemSet) {
	
	// Check whether there is a itemSet to copy
	if (itemSet == null) return(null);
	
	// Do copy and return
	short[] newItemSet = new short[itemSet.length];
	for(int index=0;index<itemSet.length;index++) {
	    newItemSet[index] = itemSet[index];
	    }
        
	// Return
	return(newItemSet);
	}

    /* ------------------------------------------------- */
    /*                                                   */
    /*                   OUTPUT METHODS                  */
    /*                                                   */
    /* ------------------------------------------------- */
    
    /* ----------------- */	
    /* OUTPUT DATA TABLE */  
    /* ----------------- */
    /** Outputs stored input data set; initially read from input data file, but
    may be reordered or pruned if desired by a particular application. */
     
    public void outputDataArray() {
        if (isPrunedFlag) System.out.println("DATA SET (Ordered and Pruned)\n" +
					"-----------------------------");
	else {
	    if (isOrderedFlag) System.out.println("DATA SET (Ordered)\n" +
					"------------------");
	    else System.out.println("DATA SET\n" + "--------");
	    }

	// Loop through data array
        for(int index=0;index<dataArray.length;index++) {
	    outputItemSet(dataArray[index]);
	    System.out.println();
	    }
	}

    /** Outputs the given array of array of short integers. <P> Used for
    diagnostic purposes.
    @param dataSet the five array of arrays. */

    protected void outputDataArray(short[][] dataSet) {
        if (dataSet==null) {
	    System.out.println("null");
	    return;
	    }

	// Loop through data array
        for(int index=0;index<dataSet.length;index++) {
	    outputItemSet(dataSet[index]);
	    System.out.println();
	    }
	}

    /* -------------- */
    /* OUTPUT ITEMSET */
    /* -------------- */
    /** Outputs a given item set.
    @param itemSet the given item set. */

    protected void outputItemSet(short[] itemSet) {
	// Check for empty set
	if (itemSet == null) System.out.print(" null ");
	// Process
	else {
	    // Reconvert where input dataset has been reordered and possible 
	    // pruned.
	    short[] tempItemSet = reconvertItemSet(itemSet);
	    // Loop through item set elements
            int counter = 0;
	    for (int index=0;index<tempItemSet.length;index++) {
	        if (counter == 0) {
	    	    counter++;
		    System.out.print(" {");
		    }
	        else System.out.print(" ");
	        System.out.print(tempItemSet[index]);
		}
	    System.out.print("} ");
	    }
	}

    /* ---------------------- */
    /* OUTPUT DATA ARRAY SIZE */
    /* ---------------------- */
    /** Outputs size (number of records and number of elements) of stored
    input data set read from input data file. */

    public void outputDataArraySize() {
    	int numRecords = 0;
	int numElements = 0;

	// Loop through data array

	for (int index=0;index<dataArray.length;index++) {
	    if (dataArray[index] != null) {
	        numRecords++;
		numElements = numElements+dataArray[index].length;
	        }
	    }

	// Output

	System.out.println("Number of records        = " + numRecords);
	System.out.println("Number of elements       = " + numElements);
	double density = (double) numElements/ (numCols*numRecords);
	System.out.println("Data set density   = " + twoDecPlaces(density) +
								"%");
	}

    /* ------------------------ */
    /* OUTPUT CONVERSION ARRAYS */
    /* ------------------------ */
    /** Outputs conversion array (used to renumber columns for input data
    in terms of frequency of single attributes --- reordering will enhance
    performance for some ARM algorithms). */

    public void outputConversionArrays() {

        // Conversion array
        System.out.println("Conversion Array = ");
	for(int index=1;index<conversionArray.length;index++) {
	    System.out.println("(" + index + ") " + conversionArray[index][0] +
	    			" = " + conversionArray[index][1]);
	    }

        // Reconversion array
        System.out.println("Reonversion Array = ");
	for(int index=1;index<reconversionArray.length;index++) {
	    System.out.println("(" + index + ") " + reconversionArray[index]);
	    }
	}

    /* ----------- */
    /* OUTPUT MENU */
    /* ----------- */
    /** Outputs menu for command line arguments. */

    protected void outputMenu() {
        System.out.println();
	System.out.println("-C  = Confidence (default 80%)");
	System.out.println("-F  = File name");
	System.out.println("-N  = Number of classes (Optional)");
	System.out.println("-S  = Support (default 20%)");
	System.out.println();

	// Exit

	System.exit(1);
	}

    /* --------------- */
    /* OUTPUT SETTINGS */
    /* --------------- */
    /** Outputs command line values provided by user. */

    protected void outputSettings() {
        System.out.println("SETTINGS\n--------");
	System.out.println("File name                = " + fileName);
	System.out.println("Support (default 20%)    = " + support);
	System.out.println("Confidence (default 80%) = " + confidence);
	System.out.println();
        }

    /* OUTPUT SETTINGS */
    /** Outputs instance field values. */

    protected void outputSettings2() {
        System.out.println("SETTINGS\n--------");
        System.out.println("Number of records        = " + numRows);
	System.out.println("Number of columns        = " + numCols);
	System.out.println("Support (default 20%)    = " + support);
	System.out.println("Confidence (default 80%) = " + confidence);
        System.out.println("Min support              = " + minSupport +
					" (records)");
	System.out.println("Num one itemsets         = " + numOneItemSets);
	}

    /* -------------------------------------- */
    /* OUTPUT SUPPORT AND CONFIDENCE SETTINGS */
    /* -------------------------------------- */
    /** Outputs current support and confidence settings. */

    public void outputSuppAndConf() {
	System.out.println("Support = " + twoDecPlaces(support) + 
			", Confidence = " + twoDecPlaces(confidence));
        }
	
    /* ------------------------ */
    /* OUTPUT RULE LINKED LISTS */
    /* ------------------------ */	

    /** Outputs contents of rule linked list (if any) asuming that the list
    represents a set of ARs.	*/

    public void outputRules() {
        outputRules(startRulelist);
	}
	
    /** Outputs given rule list.
    @param ruleList the given rule list. */

    public void outputRules(RuleNode ruleList) {
	// Check for empty rule list
	if (ruleList==null) System.out.println("No rules generated!");
	
	// Loop through rule list
	int number = 1;
        RuleNode linkRuleNode = ruleList;
	while (linkRuleNode != null) {
	    System.out.print("(" + number + ") ");
	    outputRule(linkRuleNode);
            System.out.println(" " +
	    		twoDecPlaces(linkRuleNode.confidenceForRule) + "%");
	    number++;
	    linkRuleNode = linkRuleNode.next;
	    }
	}

    /** Outputs a rule asuming that the rule represents an ARs.
    @param rule the rule to be output. */

    private void outputRule(RuleNode rule) {
        outputItemSet(rule.antecedent);
	System.out.print(" -> ");
        outputItemSet(rule.consequent);
	}

    /* OUTPUT RULE LINKED LIST WITH DEFAULT */
    /** Outputs contents of rule linked list (if any), with reconversion, such
    that last rule is the default rule. */

    public void outputRulesWithDefault() {
        int number = 1;
        RuleNode linkRuleNode = startRulelist;

	while (linkRuleNode != null) {
	    // Output rule number
	    System.out.print("(" + number + ") ");
	    // Output antecedent
	    if (linkRuleNode.next==null) System.out.print("Default -> ");
	    else {
	        outputItemSet(linkRuleNode.antecedent);
	        System.out.print(" -> ");
		}
	    // Output concequent
            outputItemSet(linkRuleNode.consequent);
            System.out.println(" " +
	    		twoDecPlaces(linkRuleNode.confidenceForRule) + "%");
	    // Increment parameters
	    number++;
	    linkRuleNode = linkRuleNode.next;
	    }
	}
			
    /* --------------------------------- */
    /*                                   */
    /*        DIAGNOSTIC OUTPUT          */
    /*                                   */
    /* --------------------------------- */
        
    /* OUTPUT DURATION */
    /** Outputs difference between two given times.
    @param time1 the first time.
    @param time2 the second time. 
    @return duration. */
    
    public double outputDuration(double time1, double time2) {
        double duration = (time2-time1)/1000;
	System.out.println("Generation time = " + twoDecPlaces(duration) + 
			" seconds (" + twoDecPlaces(duration/60) + " mins)");
        
	// Return
	return(duration);
	}

    /* -------------------------------- */
    /*                                  */
    /*        OUTPUT UTILITIES          */
    /*                                  */
    /* -------------------------------- */
    
    /* TWO DECIMAL PLACES */
    
    /** Converts given real number to real number rounded up to two decimal 
    places. 
    @param number the given number.
    @return the number to two decimal places. */ 
    
    protected double twoDecPlaces(double number) {
    	int numInt = (int) ((number+0.005)*100.0);
	number = ((double) numInt)/100.0;
	return(number);
	}    
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区在线| 精品在线一区二区| 久久九九99视频| 在线国产亚洲欧美| 黄一区二区三区| 天天影视色香欲综合网老头| 欧美韩国日本不卡| 3atv一区二区三区| 99视频一区二区三区| 久久超碰97人人做人人爱| 亚洲男同性视频| 中文字幕欧美日本乱码一线二线| 欧美精三区欧美精三区| 色综合天天性综合| 91社区在线播放| 另类人妖一区二区av| 亚洲成人精品在线观看| 中文字幕在线不卡一区| 久久综合99re88久久爱| 日韩女优电影在线观看| 欧美日韩免费电影| 91国偷自产一区二区三区成为亚洲经典 | 午夜视频一区在线观看| 中文成人av在线| 久久午夜羞羞影院免费观看| 在线观看91av| 欧美日韩黄色一区二区| 色婷婷香蕉在线一区二区| 成人一二三区视频| 国产成人亚洲综合色影视 | 91免费观看在线| 成人一区二区三区在线观看 | 青青草国产精品97视觉盛宴| 亚洲成人先锋电影| 亚洲国产精品人人做人人爽| 亚洲黄一区二区三区| 亚洲免费av观看| 亚洲免费观看高清完整版在线观看 | 国产sm精品调教视频网站| 久久精品国产第一区二区三区| 日韩av在线免费观看不卡| 亚洲成年人影院| 亚洲第一福利一区| 婷婷成人综合网| 秋霞成人午夜伦在线观看| 日韩中文字幕1| 日韩成人伦理电影在线观看| 日韩福利电影在线观看| 日本不卡在线视频| 美女尤物国产一区| 国产毛片一区二区| 丁香婷婷综合激情五月色| 粉嫩aⅴ一区二区三区四区五区| 国产成人av自拍| 91在线免费播放| 在线精品视频一区二区| 欧美日韩精品是欧美日韩精品| 欧美欧美欧美欧美| 日韩一区二区免费在线电影| 久久这里只精品最新地址| 久久久国际精品| 中文字幕在线一区免费| 亚洲综合小说图片| 午夜精品福利一区二区三区av | 99免费精品在线观看| 色8久久精品久久久久久蜜| 欧美电影影音先锋| 国产日韩欧美精品综合| 1024成人网| 日本美女视频一区二区| 国产精品系列在线观看| 91色综合久久久久婷婷| 欧美一级黄色大片| 中文字幕的久久| 五月天激情综合| 国产美女精品人人做人人爽| 色综合天天做天天爱| 91精品国模一区二区三区| 国产清纯白嫩初高生在线观看91 | 亚洲色图在线播放| 五月婷婷综合网| 国产精品888| 欧美日韩在线观看一区二区| 精品国产一区二区三区不卡 | 洋洋成人永久网站入口| 久久99久久久欧美国产| 99re66热这里只有精品3直播 | 韩国精品在线观看| 日本精品一级二级| 精品美女在线播放| 一区二区三区在线视频免费观看| 理论电影国产精品| 一本到不卡精品视频在线观看| 日韩一级黄色片| 一区二区三区在线视频播放| 国产精品538一区二区在线| 欧美中文字幕一区| 日本一区二区三区在线观看| 日韩 欧美一区二区三区| av电影一区二区| 精品精品国产高清一毛片一天堂| 亚洲日本中文字幕区| 极品尤物av久久免费看| 欧美性生活影院| 国产精品久久一级| 激情欧美一区二区三区在线观看| 欧美午夜电影一区| 亚洲欧美在线视频| 国产麻豆视频一区| 欧美大黄免费观看| 亚洲成人一区二区| 在线区一区二视频| 国产精品高清亚洲| 国产精品456| 久久嫩草精品久久久精品一| 日本午夜一区二区| 欧美区在线观看| 亚洲一区中文日韩| 色悠久久久久综合欧美99| 久久网站热最新地址| 蜜臀国产一区二区三区在线播放| 欧美亚洲愉拍一区二区| 亚洲欧美激情小说另类| 不卡av在线网| 国产精品免费人成网站| 国产成人亚洲综合a∨猫咪| 欧美不卡一区二区三区四区| 秋霞av亚洲一区二区三| 欧美精品一卡二卡| 亚洲国产精品久久久男人的天堂| 91麻豆国产在线观看| 国产精品久久久久久户外露出| 丰满少妇在线播放bd日韩电影| 久久久久国产精品麻豆ai换脸 | 99r精品视频| 中文字幕中文字幕在线一区| 99热这里都是精品| 亚洲欧美国产三级| 欧美在线小视频| 亚洲国产精品久久人人爱 | 综合分类小说区另类春色亚洲小说欧美| 国产一区二区三区四区五区美女 | 精品国产成人在线影院| 久久精品国产免费| 国产丝袜美腿一区二区三区| 成人免费高清视频在线观看| 国产精品国产a级| 色欧美片视频在线观看在线视频| 亚洲激情综合网| 欧美日韩日本视频| 日韩精品国产精品| xnxx国产精品| 高清成人免费视频| 亚洲欧美怡红院| 欧美在线你懂得| 天堂va蜜桃一区二区三区漫画版| 日韩一卡二卡三卡| 国产sm精品调教视频网站| 1024亚洲合集| 欧美丰满少妇xxxbbb| 精品一区二区三区影院在线午夜| 久久久www成人免费无遮挡大片| 成人免费毛片嘿嘿连载视频| 一区二区三区日本| 欧美大黄免费观看| 成人免费毛片嘿嘿连载视频| 一区二区三区在线视频播放| 日韩欧美成人激情| 成人永久免费视频| 亚洲成人免费电影| 久久精品人人做人人综合| 97se亚洲国产综合在线| 日本不卡123| 欧美国产精品一区二区三区| 欧洲视频一区二区| 国产在线精品一区二区夜色| 日韩一区欧美小说| 欧美va亚洲va香蕉在线| 成人91在线观看| 日韩电影在线一区二区三区| 欧美激情在线免费观看| 欧美日韩成人综合在线一区二区| 国产精品自拍在线| 亚洲国产精品综合小说图片区| 久久综合色播五月| 日本精品裸体写真集在线观看 | 亚洲欧洲国产日韩| 日韩一级完整毛片| 91天堂素人约啪| 久久国产视频网| 一区二区欧美在线观看| 久久在线免费观看| 777欧美精品| 一本色道久久综合亚洲精品按摩| 国模冰冰炮一区二区| 亚洲超丰满肉感bbw| 国产精品久久久久影院色老大 | 国产精品毛片久久久久久久| 日韩一区二区三区视频在线| 91香蕉视频污在线|