public void LowerCriticalImplication01()
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(10, 2, 0, 0);
     //FourFTQuantifiers.LowerCriticalImplication quantifier = new RelMiner.FourFTQuantifiers.LowerCriticalImplication(0.8f, 0.05f);
     Assert.IsFalse(table.CriticalImplicationValidity(0.8D, 0.05D, CoreRelationEnum.LessThanOrEqualCore), "FFTQ028");
     Assert.AreEqual(0.561894564884689D, table.CriticalImplicationValue(0.05D), "FFTQ029");
     //TODO I`m not sure
 }
 public void LowerCriticalImplication02()
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(100, 1, 0, 0);
     Assert.IsTrue(table.CriticalImplicationValidity(0.8D, 0.05D, CoreRelationEnum.LessThanOrEqualCore), "FFTQ030");
     Assert.AreEqual(0.953892650075111D, table.CriticalImplicationValue(0.05D), "FFTQ031");
     //TODO I`m not sure
 }
 /// <summary>
 /// Computes the statistical strength value at the specified significance (alpha).
 /// </summary>
 /// <returns>Statistical strength value at the specified significance (alpha).</returns>
 /// <remarks>
 /// <para>Computes the numerical solution of the following equation (for variable p):</para>
 /// <para><c>Sum[i = 0..a] x! / (i! * (x - i)!) * p^i * (1.0 - p)^(x - i) - alpha = 0.0</c></para>
 /// <para>The solution must be between 0.0 and 1.0 (inclusive).</para>
 /// </remarks>
 public override double Value(AbstractQuantifierSetting setting, Ice.Current __current)
 {
     FourFoldContingencyTable table = new FourFoldContingencyTable(setting.firstContingencyTableRows);
     return table.CriticalImplicationValue(Alpha);
 }