The procedure adopted by Heinerman [Acta Cryst. (1977). A33, 100-106] to incorporate structural information in phase determination is combined with that of Giacovazzo [Acta Cryst. (1983). A39, 685-692]. The resulting joint probability distribution of three structure factors is a generalization of the corresponding distributions of the previous authors. This distribution is used (i) to calculate the phase of a triple product given a priori structural information, (ii) to 0108-7673/90/060517-04503.00 resolve the sign ambiguity in single isomorphous replacement if the replacement structure is known. The latter application for the incorporation of partial structure information is more general than that proposed by Fan Hai-fu & Gu Yuan-xin [Acta Cryst. (1985). A41,280-284].