/// <summary> /// See [054 Redundance vystupu 4ftMiner.doc] /// Returns the validity of E-quantifier, i.e. true iff the (<c>a</c> + <c>d</c>) / (<c>a</c> + <c>b</c> + <c>c</c> + <c>d</c>) from 4ft-table is greater than or equal to the specified param <c>p</c>. /// </summary> /// <returns><c>true</c> iff the value of E-quantifier is greater than or equal to the specified param <c>p</c>.</returns> public override bool Validity(AbstractQuantifierSetting setting, Ice.Current __current) { FourFoldContingencyTable table = new FourFoldContingencyTable(setting.firstContingencyTableRows); return table.EValidity(P); }
public void E01() { FourFoldContingencyTable table = new FourFoldContingencyTable(103, 0, 5, 6074); Assert.AreEqual(0.999191200258816D, table.EValue(), "FFTQ041"); Assert.IsTrue(table.EValidity(0.5D), "FFTQ042"); Assert.IsFalse(table.EValidity(0.999999D), "FFTQ043"); }