📄 vertexset.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_04) on Tue Jun 22 19:42:07 EDT 2004 --><TITLE>VertexSet (JavaBayes API)</TITLE><META NAME="keywords" CONTENT="CredalSets.VertexSet class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="VertexSet (JavaBayes API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JavaBayes API</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../CredalSets/TwoMonotoneCapacity.html" title="class in CredalSets"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" target="_top"><B>FRAMES</B></A> <A HREF="VertexSet.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_BayesianNetworks.ProbabilityFunction">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">CredalSets</FONT><BR>Class VertexSet</H2><PRE>java.lang.Object <IMG SRC="../resources/inherit.gif" ALT="extended by"><A HREF="../BayesianNetworks/DiscreteFunction.html" title="class in BayesianNetworks">BayesianNetworks.DiscreteFunction</A> <IMG SRC="../resources/inherit.gif" ALT="extended by"><A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">BayesianNetworks.ProbabilityFunction</A> <IMG SRC="../resources/inherit.gif" ALT="extended by"><A HREF="../CredalSets/QBProbabilityFunction.html" title="class in CredalSets">CredalSets.QBProbabilityFunction</A> <IMG SRC="../resources/inherit.gif" ALT="extended by">CredalSets.FinitelyGeneratedSet <IMG SRC="../resources/inherit.gif" ALT="extended by"><B>CredalSets.VertexSet</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD></DL><HR><DL><DT>public class <B>VertexSet</B><DT>extends CredalSets.FinitelyGeneratedSet</DL><P><DL><DT><B>See Also:</B><DD><A HREF="../serialized-form.html#CredalSets.VertexSet">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR></TABLE> <A NAME="fields_inherited_from_class_BayesianNetworks.ProbabilityFunction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class BayesianNetworks.<A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">ProbabilityFunction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../BayesianNetworks/ProbabilityFunction.html#bn">bn</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#properties">properties</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_BayesianNetworks.DiscreteFunction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class BayesianNetworks.<A HREF="../BayesianNetworks/DiscreteFunction.html" title="class in BayesianNetworks">DiscreteFunction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../BayesianNetworks/DiscreteFunction.html#values">values</A>, <A HREF="../BayesianNetworks/DiscreteFunction.html#variables">variables</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#VertexSet(BayesianNetworks.BayesNet, BayesianNetworks.ProbabilityVariable[], double[][], java.util.Vector)">VertexSet</A></B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n, <A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A>[] pvs, double[][] ep, java.util.Vector prop)</CODE><BR> Default constructor for a VertexQBProbabilityFunction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#VertexSet(BayesianNetworks.BayesNet, BayesianNetworks.ProbabilityVariable[], double[], java.util.Vector, double[][])">VertexSet</A></B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n, <A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A>[] pvs, double[] v, java.util.Vector prop, double[][] ep)</CODE><BR> Constructor for a VertexQBProbabilityFunction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#VertexSet(BayesianNetworks.ProbabilityFunction)">VertexSet</A></B>(<A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">ProbabilityFunction</A> pf)</CODE><BR> Constructor for a VertexQBProbabilityFunction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#VertexSet(BayesianNetworks.ProbabilityFunction, double[])">VertexSet</A></B>(<A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">ProbabilityFunction</A> pf, double[] new_values)</CODE><BR> Constructor for a VertexQBProbabilityFunction from a ProbabilityFunction object and new values.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#compose_values()">compose_values</A></B>()</CODE><BR> Produce the centroid of all extreme distributions and insert it into the values of the distribution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#evaluate(java.lang.String[][], int)">evaluate</A></B>(java.lang.String[][] variable_value_pairs, int index_extreme_point)</CODE><BR> Evaluate a function given a list of pairs (Variable Value) which specifies a value of the function, and the index of the extreme distribution to consider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#get_auxiliary_variable()">get_auxiliary_variable</A></B>()</CODE><BR> Methods that allow basic manipulation of non-public variables.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#get_extreme_points()">get_extreme_points</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../CredalSets/VertexSet.html" title="class in CredalSets">VertexSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#prepare_auxiliary_variable(BayesianNetworks.BayesNet)">prepare_auxiliary_variable</A></B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> transformed_bn)</CODE><BR> Put together all the values for the possible vertices of credal set and create an auxiliary variable to indicate which vertex to consider There are three things to do: 1) Create an auxiliary_variable with correct values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#print(java.io.PrintStream)">print</A></B>(java.io.PrintStream out)</CODE><BR> Print method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#set_extreme_point(int, double[])">set_extreme_point</A></B>(int index, double[] ep)</CODE><BR> Set an extreme point of the credal set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#set_local_credal_set(int)">set_local_credal_set</A></B>(int number_extreme_points)</CODE><BR> Set the number of extreme distributions in the credal set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../CredalSets/VertexSet.html#set_value(java.lang.String[][], double, int)">set_value</A></B>(java.lang.String[][] variable_value_pairs, double val, int index_extreme_point)</CODE><BR> Set a single value of the probability function.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_CredalSets.QBProbabilityFunction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class CredalSets.<A HREF="../CredalSets/QBProbabilityFunction.html" title="class in CredalSets">QBProbabilityFunction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../CredalSets/QBProbabilityFunction.html#get_lower_envelope()">get_lower_envelope</A>, <A HREF="../CredalSets/QBProbabilityFunction.html#get_upper_envelope()">get_upper_envelope</A>, <A HREF="../CredalSets/QBProbabilityFunction.html#print()">print</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_BayesianNetworks.ProbabilityFunction"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class BayesianNetworks.<A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">ProbabilityFunction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../BayesianNetworks/ProbabilityFunction.html#add_property(java.lang.String)">add_property</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#evaluate(int[])">evaluate</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#evaluate(java.lang.String[][])">evaluate</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#expected_value(BayesianNetworks.DiscreteFunction)">expected_value</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#get_enumerated_properties()">get_enumerated_properties</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#get_position_from_indexes(int[])">get_position_from_indexes</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#get_properties()">get_properties</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#posterior_expected_value(BayesianNetworks.DiscreteFunction)">posterior_expected_value</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#remove_property(int)">remove_property</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#remove_property(java.lang.String)">remove_property</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#save_xml_0_3(java.io.PrintStream)">save_xml_0_3</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#save_xml(java.io.PrintStream)">save_xml</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#set_properties(java.util.Vector)">set_properties</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#set_value(java.lang.String[][], double)">set_value</A>, <A HREF="../BayesianNetworks/ProbabilityFunction.html#variance(BayesianNetworks.DiscreteFunction)">variance</A></CODE></TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -