public void Set(HyperVertex p, HyperVertex c) { TYPE = ETYPE.DUMMY; to = p; //from.Add(c); from0 = c; from1 = null; p.AddIncomingLink (this); c.AddOutgoingLink (this); posteriorScore = double.NegativeInfinity; }
public void Set(HyperVertex p, HyperVertex w, double[] terminalScores, double[] terminalExpects) { TYPE = ETYPE.TERMINAL; this.terminalScores = terminalScores; this.terminalExpects = terminalExpects; to = p; from0 = w; from1 = null; p.AddIncomingLink (this); w.AddOutgoingLink (this); posteriorScore = double.NegativeInfinity; }
public void Set(HyperVertex p, HyperVertex c, double[][] unaryScores, double[][] unaryExpects) { TYPE = ETYPE.UNARY; this.unaryScores = unaryScores; this.unaryExpects = unaryExpects; to = p; from0 = c; from1 = null; p.AddIncomingLink (this); c.AddOutgoingLink (this); posteriorScore = double.NegativeInfinity; }
public void Set(HyperVertex p, HyperVertex l, HyperVertex r, double[][][] binaryScores, double[][][] binaryExpects) { TYPE = ETYPE.BINARY; this.binaryScores = binaryScores; this.binaryExpects = binaryExpects; to = p; from0 = l; from1 = r; p.AddIncomingLink (this); l.AddOutgoingLink (this); r.AddOutgoingLink (this); posteriorScore = double.NegativeInfinity; }