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

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

?? catgraph.java

?? 數據倉庫挖掘與開發 ID3算法實現代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        Node node2;
        for(node2 = cGraph.first_node() ; node2 == null ; node2 = cGraph.succ_node(node2)) {
            if (node == node2)
                return true;
        }
        if (fatalOnFalse) {
            if (node == null)
                Error.fatalErr("CatGraph::check_node_in_graph: The given node 0x0 "
                + "is not in this graph");
            else
                Error.fatalErr("CatGraph::check_node_in_graph: The given node "
                +node+ " is not in this graph");
        }
        return false;
    }
    
    /** Creates a postscript file of the receiving graph via a dot description.
     * This method applies only to the DotGraph DisplayPref.
     * @param stream		The stream to be written to.
     * @param dp			The preferences for display.
     * @param hasNodeLosses TRUE if this Node contains loss values.
     * @param hasLossMatrix	TRUE if this CatGraph has a loss matrix assigned to
     * it, FALSE otherwise.
     */
    protected void process_DotGraph_display(Writer stream,
    DisplayPref dp,
    boolean hasNodeLosses,
    boolean hasLossMatrix) {
        try {
            FileWriter tempfile = new FileWriter("catgraph.dot-graph");
            convertToDotFormat(tempfile, dp, hasNodeLosses, hasLossMatrix);
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    
    /** Creates a postscript file of the receiving graph in a graphical form.
     * This method applies only to the DotPostscript DisplayPref.
     * @param stream		The stream to be written to.
     * @param dp			The preferences for display.
     * @param hasNodeLosses TRUE if this Node contains loss values.
     * @param hasLossMatrix	TRUE if this CatGraph has a loss matrix assigned to
     * it, FALSE otherwise.
     */
    protected void process_DotPostscript_display(Writer stream,
    DisplayPref dp,
    boolean hasNodeLosses,
    boolean hasLossMatrix) {
        try {
            //Originally this used a temporary file name for dot file output -JL
            FileWriter tempfile = new FileWriter("catgraph.dot-in");
            convertToDotFormat(tempfile, dp, hasNodeLosses, hasLossMatrix);
            tempfile.close();
            
            //This is a system call to the dot program -JL
            //TmpFileName tmpfile2(".dot-out");
            //if(system(*GlobalOptions::dotUtil + " -Tps " + tmpfile1 + " -o " + tmpfile2))
            //Mcerr << "CatGraph::display: Call to dot failed." << endl;
            //stream.include_file(tmpfile2);     // this feeds the correct output
        } catch(IOException e) {
            e.printStackTrace();
            System.exit(1);
        }
    }
    
    /** Prints a representation of the CatGraph to the specified stream, using the
     * Categorizer descriptions to label the nodes. This mehtod takes into account
     * the different combinations of streams and display preferences. See
     * DisplayPref.java for more details with regards to valid combinations,
     * functionality, and options.
     * @param hasNodeLosses TRUE if this Node contains loss values.
     * @param hasLossMatrix	TRUE if this CatGraph has a loss matrix assigned to
     * it, FALSE otherwise.
     * @param stream		The stream to be written to.
     * @param dp			The preferences for display.
     */
    // The hasNodeLosses is first because it's non-default here.
    // The default is handled by the virtual base class that calls
    //    the header file, which in turn passes a FALSE here.
    public void display(boolean hasNodeLosses, boolean hasLossMatrix,
    Writer stream, DisplayPref dp) {
        // XStream is a special case--the only option so far where you don't
        // just send something to the MLCOStream.
        //   if (stream.output_type() == XStream) {
        //      process_XStream_display(dp, hasNodeLosses, hasLossMatrix);
        //      return;
        //   }
        try {
            // Other cases are depend only on DisplayPreference
            switch (dp.preference_type()) {
                case  DisplayPref.ASCIIDisplay:
                    // Note that we're calling get_fstream and not get_stream to avoid
                    //   overflow when cout is auto-wrapped (since it's a strstream).
                    //   This means that there is no wrapping here.
                    cGraph.print(stream);
                    stream.flush();
                    break;
                    
                case  DisplayPref.DotPostscriptDisplay:
                    process_DotPostscript_display(stream, dp, hasNodeLosses, hasLossMatrix);
                    break;
                    
                case  DisplayPref.DotGraphDisplay:
                    process_DotGraph_display(stream,dp, hasNodeLosses, hasLossMatrix);
                    break;
                    
                default:
                    Error.fatalErr("CatGraph::display: Unrecognized output type: "
                    + dp.toString());
                    
            }
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    
    
    /***************************************************************************
  Converts the representation of the graph to dot format and directs it to
the specified stream.
@param stream		The stream to be written to.
@param pref			The preferences for display.
@param hasNodeLosses
@param hasLossMatrix	TRUE if this CatGraph has a loss matrix assigned to
                                        it, FALSE otherwise.
     ***************************************************************************
   protected void convertToDotFormat(Writer stream,
          DisplayPref pref,
          boolean hasNodeLosses,
          boolean hasLossMatrix)
   {
      try
      {
         stream.write(convertToDotFormat(pref,hasNodeLosses,hasLossMatrix));
      } catch(IOException e)
      {
         e.printStackTrace();
      }
   }
     */
    
    /** Returns a representation of the graph to dot format.
     * @param stream		The stream to be written to.
     * @param pref			The preferences for display.
     * @param hasNodeLosses TRUE if this Node contains loss values.
     * @param hasLossMatrix	TRUE if this CatGraph has a loss matrix assigned to
     * it, FALSE otherwise.
     */
    protected void convertToDotFormat(Writer stream,
    DisplayPref pref,
    boolean hasNodeLosses,
    boolean hasLossMatrix) {
        try {
            GetEnv getenv = new GetEnv();
            boolean displayDistr = getenv.get_option_bool("DIST_DISP", defaultDistDisp, distDispHelp, true);
            
            // send header and open brace to stream.
            stream.write("/* Machine generated dot file */ \n\n"
            +"digraph G { \n\n");
            
            
            // Preferences that only make sense for the Postscript Display
            
            if (pref.preference_type() == DisplayPref.DotPostscriptDisplay) {
                process_DotPoscript_preferences(stream, pref);
            }
            
            // We add each node to the dot output.
            Node v = null;
            for(ListIterator NLI = cGraph.nodeIterator() ; NLI.hasNext() ;) {
                v =(Node) NLI.next();
                
                stream.write("/*  node " + v.index() +":  */\n");
                stream.write("node_" + v.index() +" [label=\"" + get_categorizer(v).description());
                
                if (hasNodeLosses) {
                    stream.write("\\nEstimated ");
                    if (hasLossMatrix)
                        stream.write("losses: ");
                    else
                        stream.write("error: ");
                    NodeLoss na = get_categorizer(v) .get_loss();
                    if (Math.abs(na.totalWeight) < MLJ.realEpsilon)
                        stream.write("?");
                    else {
                        double loss = na.totalLoss/  na.totalWeight;
                        stream.write(MLJ.numberToString(loss*100, 2) +"% (" + na.totalWeight +')');
                    }
                }
                
                if (displayDistr && get_categorizer(v).has_distr())
                    stream.write("\\n" + get_categorizer(v).get_distr());
                
                stream.write("\"]\n");
                
                Edge e;
                for(ListIterator ELI = cGraph.edgeIterator() ; ELI.hasNext() ;) {
                    e =(Edge) ELI.next();
                    stream.write("node_" + v.index() +"->" +"node_"
                    + e.target() .index() +" [label=\""
                    +((AugCategory) cGraph.inf(e)) .description() +"\"] \n");
                }
                MLJ.ASSERT(v != null, "CatGraph::convertToDotFormat"
                + "(DisplayPref,boolean,boolean): v equals NULL");
            }
            MLJ.ASSERT(v == null, "CatGraph::convertToDotFormat"
            + "(DisplayPref,boolean,boolean): v does not equal NULL");
            
            stream.write("}\n");
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    
    /** Gets the preferences from the DisplayPref class. This method applies only to
     * DotPostscript display type.
     * @param stream The Writer to which the CatGraph will be displayed.
     * @param pref The preferences to use in displaying the CatGraph.
     */
    void process_DotPoscript_preferences(Writer stream,
    DisplayPref pref) {
        // Remember: These are preferences that only make sense for the
        // Postscript Display
        float pageSizeX = pref.get_page_size_x();
        float pageSizeY = pref.get_page_size_y();
        float graphSizeX = pref.get_graph_size_x();
        float graphSizeY = pref.get_graph_size_y();
        int orientation;
        orientation = pref.get_orientation();
        int ratio;
        ratio = pref.get_ratio();
        
        try{
            stream.write("page = \"" + pageSizeX + ","
            + pageSizeY + "\";\n"
            + "size = \"" + graphSizeX + ","
            + graphSizeY + "\";\n");
            if (orientation == pref.DisplayLandscape)
                stream.write("orientation = landscape;\n");
            else
                stream.write("orientation = portrait;\n");
            if (ratio == pref.RatioFill)
                stream.write("ratio = fill;\n");
        }catch(IOException e){e.printStackTrace();}
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲综合另类| 亚洲国产高清不卡| 久久久国产精品麻豆| 自拍av一区二区三区| 毛片av一区二区| 91片在线免费观看| 26uuu国产在线精品一区二区| 亚洲婷婷综合久久一本伊一区| 日本不卡不码高清免费观看| 91丨porny丨户外露出| 精品成人一区二区三区四区| 亚洲高清一区二区三区| 成人黄色软件下载| 国产色产综合色产在线视频| 免费一级片91| 欧美三级日韩三级| 自拍偷拍亚洲综合| 成人app网站| 国产精品免费人成网站| 精品一区二区成人精品| 日韩一区二区三区高清免费看看| 夜夜嗨av一区二区三区四季av| 成人午夜免费电影| 久久无码av三级| 韩国视频一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 麻豆91小视频| 欧美电影免费观看高清完整版在线 | 亚洲精品国产成人久久av盗摄 | 国产亚洲美州欧州综合国| 日本人妖一区二区| 91精品国产入口| 婷婷综合另类小说色区| 51精品国自产在线| 奇米888四色在线精品| 在线综合视频播放| 蜜臀av国产精品久久久久| 欧美视频在线播放| 日本欧美韩国一区三区| 日韩一区二区电影在线| 日韩精品亚洲一区二区三区免费| 91精品国产色综合久久久蜜香臀| 日本成人在线不卡视频| 欧美mv日韩mv亚洲| 国产精品亚洲成人| 亚洲欧美怡红院| 日韩视频免费观看高清在线视频| 日本不卡在线视频| 久久久国产精品午夜一区ai换脸| 成人高清视频在线观看| 亚洲同性同志一二三专区| 欧美色男人天堂| 久久99久久99精品免视看婷婷| 国产免费成人在线视频| 91免费版在线| 性做久久久久久免费观看欧美| 欧美一区二区三区在| 国产成人精品亚洲日本在线桃色| 国产精品久久久久久亚洲毛片 | 久久成人18免费观看| 精品黑人一区二区三区久久| 成人国产精品免费观看| 亚洲高清视频的网址| 精品国产免费视频| 91一区二区在线| 欧美a一区二区| 国产欧美中文在线| 欧美日韩电影一区| 国产不卡在线一区| 亚洲bt欧美bt精品777| 国产午夜精品久久久久久免费视| 91麻豆精品在线观看| 久久精品国产99国产| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 欧美色成人综合| 成人免费电影视频| 日韩精品五月天| 亚洲欧洲一区二区三区| 日韩视频123| 欧美性猛片xxxx免费看久爱| 国产老女人精品毛片久久| 亚洲第一福利一区| 国产精品乱码人人做人人爱| 欧美一区二区免费观在线| 色噜噜久久综合| 国产老妇另类xxxxx| 日韩激情一二三区| 中文字幕综合网| 久久亚洲春色中文字幕久久久| 欧美日本韩国一区二区三区视频 | 色八戒一区二区三区| 国产盗摄一区二区| 另类专区欧美蜜桃臀第一页| 亚洲图片一区二区| 综合av第一页| 国产精品视频免费| 久久亚洲精品小早川怜子| 这里只有精品99re| 欧美性生交片4| 日本精品一区二区三区高清| 成人网在线免费视频| 国产一区在线不卡| 精品亚洲国内自在自线福利| 日韩av电影免费观看高清完整版 | 亚洲欧洲在线观看av| 久久精品亚洲精品国产欧美 | 91成人免费电影| 91浏览器入口在线观看| 国产白丝网站精品污在线入口| 韩国av一区二区三区在线观看| 日本亚洲欧美天堂免费| 日本一不卡视频| 免费在线看成人av| 美女一区二区在线观看| 日本不卡123| 蜜臀91精品一区二区三区 | 在线区一区二视频| 色狠狠色狠狠综合| 欧美天堂亚洲电影院在线播放| 色哟哟在线观看一区二区三区| 成人av免费网站| 91麻豆自制传媒国产之光| 色综合久久综合网97色综合| 色激情天天射综合网| 欧美唯美清纯偷拍| 欧美人与z0zoxxxx视频| 日韩午夜av电影| 精品国产精品网麻豆系列| 久久久影视传媒| 亚洲欧洲成人精品av97| 一区二区高清视频在线观看| 天天操天天色综合| 九一久久久久久| 粉嫩av一区二区三区在线播放| hitomi一区二区三区精品| 欧洲中文字幕精品| 日韩无一区二区| 中文字幕精品在线不卡| 亚洲一区二区三区美女| 久久激情五月婷婷| 99久久精品国产毛片| 欧美日韩国产美女| 久久久99精品久久| 洋洋成人永久网站入口| 九一九一国产精品| 99re这里都是精品| 欧美一区三区二区| 国产蜜臀97一区二区三区| 亚洲永久精品大片| 国产在线精品一区二区夜色| av不卡在线观看| 日韩一二在线观看| 亚洲天堂中文字幕| 久久丁香综合五月国产三级网站| www.亚洲色图.com| 7777精品伊人久久久大香线蕉经典版下载 | av亚洲精华国产精华| 欧美久久久久久蜜桃| 国产亚洲精品aa| 亚洲永久免费av| 国产成人aaa| 在线播放国产精品二区一二区四区| 欧美成人一区二区三区| 亚洲女人的天堂| 国产伦精一区二区三区| 欧美午夜一区二区| 国产精品乱人伦中文| 毛片不卡一区二区| 欧美色精品在线视频| 国产欧美日韩卡一| 久久成人免费网站| 欧美日韩国产区一| 亚洲精品视频观看| 国产精品一区二区黑丝| 91精品国产一区二区| 一区二区三区久久| 成人黄色大片在线观看| 欧美大片日本大片免费观看| 亚洲午夜一区二区三区| 欧美一区二区高清| 一区二区三区资源| 99久久99久久久精品齐齐| 亚洲精品一区二区在线观看| 亚洲福利视频导航| 色爱区综合激月婷婷| 国产精品久久福利| 国产99久久精品| 久久久久久99精品| 国产在线精品一区二区夜色 | 日韩经典一区二区| 在线视频国产一区| 亚洲人被黑人高潮完整版| 丁香激情综合五月| 中文字幕av一区二区三区高| 久久狠狠亚洲综合| 精品理论电影在线| 国产在线不卡一区| 久久久青草青青国产亚洲免观| 精品午夜一区二区三区在线观看| 欧美丰满嫩嫩电影|